fa362b813c
We can rely on Require instead of Order, Allow, Deny, Satisfy since we are all on apache 2.4 now. This simplifies reasoning about acl rules. Change-Id: Idedba1558ccaa1c753d1175e356bf26a8d4b1084
56 lines
1.6 KiB
Plaintext
56 lines
1.6 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 ! ['', nil].include?(@serveraliases) -%>
|
|
<%= " ServerAlias #{@serveraliases}" %>
|
|
<% end -%>
|
|
DocumentRoot <%= @docroot %>
|
|
|
|
Alias /reviews /srv/static/reviewday
|
|
<Directory /srv/static/reviewday>
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
Alias /openstack-health /srv/static/openstack-health
|
|
<Directory /srv/static/openstack-health>
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory <%= @docroot %>>
|
|
Options <%= @options %>
|
|
AllowOverride None
|
|
Require all granted
|
|
</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
|
|
Require all granted
|
|
</Directory>
|
|
|
|
RedirectMatch permanent ^/rechecks(.*) /elastic-recheck
|
|
Alias /elastic-recheck /usr/local/share/elastic-recheck
|
|
<Directory /usr/local/share/elastic-recheck>
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
RedirectMatch temp ^/zuul(.*) https://zuul.opendev.org/t/openstack/status
|
|
|
|
ErrorLog /var/log/apache2/<%= @name %>_error.log
|
|
LogLevel warn
|
|
CustomLog /var/log/apache2/<%= @name %>_access.log combined
|
|
ServerSignature Off
|
|
</VirtualHost>
|