deb/apache-register-hg.bash
changeset 31 461eed8e7463
parent 21 52f40bd9e114
child 32 921746b84574
equal deleted inserted replaced
30:28471730dbf0 31:461eed8e7463
    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     ServerName hg.defun.work
    44 
    44 
       
    45     Alias "/.well-known/acme-challenge/" "/srv/www/letsencrypt/.well-known/acme-challenge/"
       
    46     <Directory "/srv/www/letsencrypt/">
       
    47         Require all granted
       
    48     </Directory>
       
    49 
    45     ScriptAliasMatch  ^/(.*)  /srv/hg/hgweb.cgi/\$1
    50     ScriptAliasMatch  ^/(.*)  /srv/hg/hgweb.cgi/\$1
    46 
    51 
    47     <Directory "/srv/hg/">
    52     <Directory "/srv/hg/">
    48         Options +ExecCGI
    53         Options +ExecCGI
    49         Require all granted
    54         Require all granted