cat 20_hg jabber linux md-vhost conf NameVirtualHost 127 8000 VirtualH

 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
30
31
32
33
34
35
36
cat 20_hg.jabber.linux.md-vhost.conf
NameVirtualHost 127.0.0.1:8000
<VirtualHost 127.0.0.1:8000>
ServerAdmin webmaster@jabber.linux.md
ServerName hg.jabber.linux.md
ErrorLog /var/log/apache2/hg.jabber.linux.md-error_log
# LogLevel debug
CustomLog /var/log/apache2/hg.jabber.linux.md-access_log combined
<Directory /home/kron/domains/jabber.linux.md/>
Options FollowSymLinks
AllowOverride All
Order deny,allow
Allow from all
</Directory>
WSGIProcessGroup hg1
WSGIDaemonProcess hg1 processes=1 user=kron group=users threads=5 maximum-requests=1000 home=/home/kron/domains/jabber.linux.md inactivity-timeout=300
WSGIScriptAlias / /home/kron/domains/jabber.linux.md/hg/hg.wsgi
WSGIScriptReloading On
WSGIReloadMechanism Process
<Location />
<Limit POST>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/kron/domains/jabber.linux.md/hg/htpasswd
Require valid-user
</Limit>
</Location>
</VirtualHost>