blob: dca3f5f2155b064bde831b29cbd1d734ca91aefa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
NameVirtualHost *:<%= port %>
<VirtualHost *:<%= port %>>
ServerName <%= name %>
DocumentRoot <%= docroot %>
RewriteEngine On
RewriteRule ^/$ /gitweb [R]
<Directory <%= docroot %>>
Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
order allow,deny
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>
|