NameVirtualHost VirtualHost ServerAdmin helge leschinsky in ua ServerN

 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
NameVirtualHost *
<VirtualHost *>
ServerAdmin helge@leschinsky.in.ua
ServerName hg.leschinsky.in.ua
<Directory "/">
Options +ExecCGI
AddHandler cgi-script .cgi
AuthUserFile /var/lib/hg/.htpasswd
AuthGroupFile /dev/null
AuthName "My Repositories"
AuthType Basic
<LimitExcept GET>
Require valid-user
</LimitExcept>
</Directory>
RewriteEngine On
RewriteRule (.*) /var/lib/hg/hgwebdir.cgi$1
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>