diff options
author | Adrien Thebo <adrien.thebo@gmail.com> | 2011-05-31 14:09:31 -0700 |
---|---|---|
committer | Adrien Thebo <adrien.thebo@gmail.com> | 2011-05-31 14:09:31 -0700 |
commit | 18310aa26c9fd5644115ef38722aaf75302ded53 (patch) | |
tree | de916fa0320eb30fdddf7447cf55c34920bbc98d /templates/apache-gitweb.conf.erb | |
parent | 26dc2c63d1f07b04cd4e639f40cc651aacb2ce54 (diff) |
Updated apache template, added args, removed ssl.
- SSL was breaking testing, removed it for the time being.
- Converted gitweb.conf to template.
- Added more options to gitweb::settings.
Diffstat (limited to 'templates/apache-gitweb.conf.erb')
-rw-r--r-- | templates/apache-gitweb.conf.erb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/apache-gitweb.conf.erb b/templates/apache-gitweb.conf.erb index d0736ae..dca3f5f 100644 --- a/templates/apache-gitweb.conf.erb +++ b/templates/apache-gitweb.conf.erb @@ -1,6 +1,11 @@ +NameVirtualHost *:<%= port %> <VirtualHost *:<%= port %>> ServerName <%= name %> DocumentRoot <%= docroot %> + + RewriteEngine On + RewriteRule ^/$ /gitweb [R] + <Directory <%= docroot %>> Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch AllowOverride All @@ -8,6 +13,17 @@ Allow from all AddHandler cgi-script cgi DirectoryIndex gitweb.cgi + <%# if auth == true -%> + AuthType Basic + AuthName "Protected" + AuthUserFile /usr/local/apache/passwd/passwords + Require valid-user + <%# end -%> </Directory> + + ErrorLog /var/log/apache2/<%= name %>_error.log + LogLevel warn + CustomLog /var/log/apache2/<%= name %>_access.log combined + ServerSignature Off </VirtualHost> |