equal
deleted
inserted
replaced
38 chmod a+r /srv/hg/hgweb.config |
38 chmod a+r /srv/hg/hgweb.config |
39 |
39 |
40 cat <<EOF >/etc/apache2/sites-available/hg.conf |
40 cat <<EOF >/etc/apache2/sites-available/hg.conf |
41 <VirtualHost hg.defun.work:*> |
41 <VirtualHost hg.defun.work:*> |
42 DocumentRoot /srv/hg |
42 DocumentRoot /srv/hg |
|
43 ServerName hg.defun.work |
43 |
44 |
44 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
45 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
45 |
46 |
46 <Directory "/srv/hg/"> |
47 <Directory "/srv/hg/"> |
47 Options +ExecCGI |
48 Options +ExecCGI |
48 Require all granted |
49 Require all granted |
49 AllowOverride None |
50 AllowOverride None |
50 AddHandler cgi-script .cgi |
51 AddHandler cgi-script .cgi |
51 </Directory> |
52 </Directory> |
52 </VirtualHost> |
53 </VirtualHost> |
|
54 |
|
55 <IfModule mod_ssl.c> |
|
56 <VirtualHost hg.defun.work:443> |
|
57 DocumentRoot /srv/hg |
|
58 ServerName hg.defun.work |
|
59 |
|
60 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
|
61 |
|
62 <Directory "/srv/hg/"> |
|
63 Options +ExecCGI |
|
64 Require all granted |
|
65 AllowOverride None |
|
66 AddHandler cgi-script .cgi |
|
67 </Directory> |
|
68 </VirtualHost> |
|
69 </IfModule> |
53 EOF |
70 EOF |
54 |
71 |
55 a2ensite hg |
72 a2ensite hg |
56 systemctl reload apache2 |
73 service apache2 reload |
57 |
|