system-config/modules/openstack_project/templates/git-test.vhost.erb
James E. Blair 1450cb3c7a Allow git-test to use mod_rewrite
To create the gitea redirects, we need more sophisticated tools than
those provide by mod_alias.

Change-Id: I9724bb7af43cf1f50e22ed475d2d4e043b4f1b22
2019-02-06 10:17:55 -08:00

25 lines
844 B
Plaintext

# ************************************
# Managed by Puppet
# ************************************
<VirtualHost *:80>
ServerName <%= @srvname %>
RewriteEngine on
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
AllowOverride None
# Allow mod_rewrite rules
AllowOverrideList Redirect RedirectMatch RewriteEngine RewriteBase RewriteCond RewriteMap RewriteOptions RewriteRule
ErrorDocument 404 /errorpage.html
</Directory>
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>