cat hg it4it ru VirtualHost 87 118 101 31 80 ServerName hg it4it ru Do

 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cat hg.it4it.ru
<VirtualHost 87.118.101.31:80>
ServerName hg.it4it.ru
DocumentRoot /var/www/merc/htdocs
CustomLog /var/log/apache2/hg.it4it-access.log combined
ErrorLog /var/log/apache2/hg.it4it-error.log
WSGIScriptAliasMatch ^(.*) /var/www/merc/cgi-bin/hgwebdir.wsgi$1
<Directory /var/www/merc/htdocs>
Options FollowSymlinks
DirectoryIndex index.html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/merc/cgi-bin>
Options ExecCGI FollowSymlinks
AddHandler cgi-script .cgi
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ls /var/www/merc/cgi-bin/
hgwebdir.config hgwebdir.wsgi
cat /var/www/merc/cgi-bin/hgwebdir.wsgi
#!/usr/bin/env python
from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication
def make_web_app():
return hgwebdir("hgwebdir.config")
application = wsgiapplication(make_web_app)
cat /var/www/merc/cgi-bin/hgwebdir.config
[web]
style = coal
[paths]
/ = /var/www/merc/htdocs/**