blob: f850777c0dab96eb3951a86105df25fea503b336 (
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
|
NameVirtualHost *:<%= port %>
<VirtualHost *:<%= port %>>
ServerName <%= name %>
DocumentRoot <%= docroot %>
#SuexecUserGroup gitolite gitolite
RewriteEngine on
RewriteRule ^/$ /index.cgi [L]
<Directory <%= docroot %>>
Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride All
order allow,deny
Allow from all
AddHandler cgi-script cgi
DirectoryIndex gitweb.cgi
AuthType Basic
AuthName "Gitweb"
AuthUserFile /var/lib/gitolite/.htpasswd
#Require valid-user
</Directory>
ErrorLog /var/log/apache2/<%= name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= name %>_access.log combined
ServerSignature Off
</VirtualHost>
|