ServerName git.lunch.org.uk ErrorLog /var/log/apache2/git-error.log CustomLog /var/log/apache2/git-access.log combined RemoteIPProxyProtocol On # Gitea proxy ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000 ProxyRequests Off AllowEncodedSlashes NoDecode # Local reverse proxy authorization override # Most unix distribution deny proxy by default Order deny,allow Allow from all SSLEngine on SSLCertificateFile /var/lib/dehydrated/certs/git.lunch.org.uk/fullchain.pem SSLCertificateKeyFile /var/lib/dehydrated/certs/git.lunch.org.uk/privkey.pem ServerName git.lunch.org.uk ErrorLog /var/log/apache2/git-error.log CustomLog /var/log/apache2/git-access.log combined RemoteIPProxyProtocol On # # This redirects all accesses to the HTTPS version of the site. # RewriteEngine On RewriteRule ^/?(.*) https://git.lunch.org.uk/$1 [R=301,L]