equal
deleted
inserted
replaced
51 Alias "/.well-known/acme-challenge/" "/srv/www/letsencrypt/.well-known/acme-challenge/" |
51 Alias "/.well-known/acme-challenge/" "/srv/www/letsencrypt/.well-known/acme-challenge/" |
52 <Directory "/srv/www/letsencrypt/"> |
52 <Directory "/srv/www/letsencrypt/"> |
53 Require all granted |
53 Require all granted |
54 </Directory> |
54 </Directory> |
55 |
55 |
|
56 # Discourage bots indexing HG: Python is slow and cause OOM kills... |
|
57 <IfModule mod_headers.c> |
|
58 Header add "X-Robots-Tag" "noindex, nofollow" |
|
59 </IfModule> |
|
60 |
56 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
61 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
57 |
62 |
58 <Directory "/srv/hg/"> |
63 <Directory "/srv/hg/"> |
59 Options +ExecCGI |
64 Options +ExecCGI |
60 Require all granted |
65 Require all granted |
66 <IfModule mod_ssl.c> |
71 <IfModule mod_ssl.c> |
67 <VirtualHost hg.defun.work:443> |
72 <VirtualHost hg.defun.work:443> |
68 DocumentRoot /srv/hg |
73 DocumentRoot /srv/hg |
69 ServerName hg.defun.work |
74 ServerName hg.defun.work |
70 |
75 |
|
76 <IfModule mod_headers.c> |
|
77 Header add "X-Robots-Tag" "noindex, nofollow" |
|
78 </IfModule> |
|
79 |
71 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
80 ScriptAliasMatch ^/(.*) /srv/hg/hgweb.cgi/\$1 |
72 |
81 |
73 <Directory "/srv/hg/"> |
82 <Directory "/srv/hg/"> |
74 Options +ExecCGI |
83 Options +ExecCGI |
75 Require all granted |
84 Require all granted |
79 </VirtualHost> |
88 </VirtualHost> |
80 </IfModule> |
89 </IfModule> |
81 EOF |
90 EOF |
82 |
91 |
83 a2ensite hg |
92 a2ensite hg |
|
93 a2enmod headers |
84 service apache2 reload |
94 service apache2 reload |