ServerName hg.lunch.org.uk
ErrorLog /var/log/apache2/hg-error.log
CustomLog /var/log/apache2/hg-access.log combined
RemoteIPProxyProtocol On
ScriptAliasMatch (.*) /srv/mercurial/hgweb.cgi/$1
Options +ExecCGI +FollowSymLinks
AllowOverride Limit
Order allow,deny
Allow from all
Require all granted
SSLEngine on
SSLCertificateFile /var/lib/dehydrated/certs/hg.lunch.org.uk/fullchain.pem
SSLCertificateKeyFile /var/lib/dehydrated/certs/hg.lunch.org.uk/privkey.pem
ServerName hg.lunch.org.uk
ErrorLog /var/log/apache2/hg-error.log
CustomLog /var/log/apache2/hg-access.log combined
RemoteIPProxyProtocol On
#
# This redirects all accesses to the HTTPS version of the site.
#
RewriteEngine On
RewriteRule ^/?(.*) https://hg.lunch.org.uk/$1 [R=301,L]