system-config/modules/openstack_project/templates/status.vhost.erb
Sean Dague cf93189f14 fix alias order for elastic-recheck
Apache aliases need to nest from the most narrow to the most
broad. I had these backwards, thus breaking the web console.

While it was hot fixed, this is the permanent fix.

Change-Id: I26209dea29ce2d29701b81a53360fff358ccdd77
2013-12-06 18:55:30 -05:00

64 lines
1.7 KiB
Plaintext

# ************************************
# Managed by Puppet
# ************************************
NameVirtualHost <%= vhost_name %>:<%= port %>
<VirtualHost <%= vhost_name %>:<%= port %>>
ServerName <%= srvname %>
<% if serveraliases.is_a? Array -%>
<% serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
<% elsif serveraliases != '' -%>
<%= " ServerAlias #{serveraliases}" %>
<% end -%>
DocumentRoot <%= docroot %>
RewriteEngine on
RewriteRule ^/rechecks$ /rechecks/ [R]
RewriteRule ^/rechecks/$ http://zuul.openstack.org/rechecks.html [P]
<Location /rechecks/>
Order allow,deny
Allow from all
</Location>
RewriteRule ^/bugday$ /bugday/ [R]
RewriteRule ^/bugday/(.*)$ http://old-wiki.openstack.org/bugday/$1 [P]
<Location /bugday/>
Order allow,deny
Allow from all
</Location>
Alias /reviews /srv/static/reviewday
Alias /release /srv/static/release
<Directory <%= docroot %>>
Options <%= options %>
AllowOverride None
Order allow,deny
allow from all
</Directory>
# Sample elastic-recheck config file, adjust prefixes
# per your local configuration. Because these are nested
# we need the more specific one first.
Alias /elastic-recheck/data /var/lib/elastic-recheck
<Directory /var/lib/elastic-recheck>
AllowOverride None
Order allow,deny
allow from all
</Directory>
Alias /elastic-recheck /usr/local/share/elastic-recheck
<Directory /usr/local/share/elastic-recheck>
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= name %>_access.log combined
ServerSignature Off
</VirtualHost>