ServerName lunch.org.uk ServerAlias www.lunch.org.uk ErrorLog /var/log/apache2/lunch-error.log CustomLog /var/log/apache2/lunch-access.log combined RemoteIPProxyProtocol On Alias / /usr/share/dokuwiki/ Options +FollowSymLinks AllowOverride All order allow,deny allow from all Require all granted Require all denied Require all denied SSLEngine on SSLCertificateFile /var/local/certificates/lunch.org.uk/fullchain.pem SSLCertificateKeyFile /var/local/certificates/lunch.org.uk/privkey.pem ServerName lunch.org.uk ServerAlias www.lunch.org.uk ErrorLog /var/log/apache2/lunch-error.log CustomLog /var/log/apache2/lunch-access.log combined RemoteIPProxyProtocol On # # This redirects all accesses to the HTTPS version of the site. # RewriteEngine On RewriteRule ^/?(.*) https://lunch.org.uk/$1 [R=301,L]