ServerName webmail.lunch.org.uk ErrorLog /var/log/apache2/webmail-error.log CustomLog /var/log/apache2/webmail-access.log combined RemoteIPProxyProtocol On Alias / /var/lib/roundcube/ Options +FollowSymLinks # This is needed to parse /var/lib/roundcube/.htaccess. See its # content before setting AllowOverride to None. AllowOverride All = 2.3> Require all granted Order allow,deny Allow from all # Protecting basic directories: Options -FollowSymLinks AllowOverride None Options -FollowSymLinks AllowOverride None = 2.3> Require all denied Order allow,deny Deny from all Options -FollowSymLinks AllowOverride None = 2.3> Require all denied Order allow,deny Deny from all SSLEngine on SSLCertificateFile /var/local/certificates/mail.lunch.org.uk/fullchain.pem SSLCertificateKeyFile /var/local/certificates/mail.lunch.org.uk/privkey.pem ServerName webmail.lunch.org.uk ErrorLog /var/log/apache2/webmail-error.log CustomLog /var/log/apache2/webmail-access.log combined RemoteIPProxyProtocol On # # This redirects all accesses to the HTTPS version of the site. # RewriteEngine On RewriteRule ^/?(.*) https://webmail.lunch.org.uk/$1 [R=301,L]