aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-10-03 19:16:18 +0000
committerGerrit Code Review <review@openstack.org>2016-10-03 19:16:18 +0000
commit07fd0c0163c928f65e1b4454469dd06e1113f33d (patch)
tree1a225dddf63cef5eaa98ed7e00bc4f3393304f9b /manifests
parentc08431d41aa5a447ebef669a152143e1274a227d (diff)
parent26255c86692687675a22d1ae2f0a3feea8750cb6 (diff)
Merge "Use FallbackResource instead of Rewrite for UI"
Diffstat (limited to 'manifests')
-rw-r--r--manifests/ui.pp20
1 files changed, 7 insertions, 13 deletions
diff --git a/manifests/ui.pp b/manifests/ui.pp
index 0a12af0..c73d984 100644
--- a/manifests/ui.pp
+++ b/manifests/ui.pp
@@ -82,19 +82,13 @@ class tripleo::ui (
) {
::apache::vhost { 'tripleo-ui':
- ensure => 'present',
- servername => $servername,
- ip => $bind_host,
- port => $ui_port,
- docroot => '/var/www/openstack-tripleo-ui/dist',
- options => ['Indexes', 'FollowSymLinks'],
- rewrites => [
- {
- comment => 'Redirect 404 to index',
- rewrite_cond => ['%{REQUEST_FILENAME} !-f', '%{REQUEST_FILENAME} !-d'],
- rewrite_rule => ['(.*) index.html'],
- },
- ],
+ ensure => 'present',
+ servername => $servername,
+ ip => $bind_host,
+ port => $ui_port,
+ docroot => '/var/www/openstack-tripleo-ui/dist',
+ options => ['Indexes', 'FollowSymLinks'],
+ fallbackresource => '/index.html',
}
file { '/var/www/openstack-tripleo-ui/dist/tripleo_ui_config.js' :