ServerName storage.scummvm.org Redirect permanent / https://storage.scummvm.org/ RewriteEngine on RewriteCond %{SERVER_NAME} =storage.scummvm.org RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] ServerName storage.scummvm.org ServerAdmin webmaster@scummvm.org DocumentRoot /var/www/nextcloud AllowOverride All SetHandler "proxy:unix:/run/php/php-fpm-nextcloud.sock|fcgi://localhost" # Deny access to raw php sources by default # To re-enable it's recommended to enable access to the files # only in specific virtual host or directory Require all denied # Deny access to files without filename (e.g. '.php') Require all denied Header always set Strict-Transport-Security "max-age=15552000; preload" ErrorLog ${APACHE_LOG_DIR}/storage_error.log CustomLog ${APACHE_LOG_DIR}/storage_access.log combined Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/storage.scummvm.org/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/storage.scummvm.org/privkey.pem