ServerName wiki.scummvm.org Redirect permanent / https://wiki.scummvm.org/ RewriteEngine on RewriteCond %{SERVER_NAME} =wiki.scummvm.org RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] ServerName wiki.scummvm.org ServerAdmin webmaster@scummvm.org DocumentRoot /var/www/wiki ErrorLog ${APACHE_LOG_DIR}/wiki_error.log CustomLog ${APACHE_LOG_DIR}/wiki_access.log combined SetHandler "proxy:unix:/run/php/php-fpm-wiki.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 set Cache-Control "max-age=604800, public" ExpiresActive On ExpiresByType image/gif "access plus 7 days" ExpiresByType image/ico "access plus 7 days" ExpiresByType image/jpeg "access plus 7 days" ExpiresByType image/jpg "access plus 7 days" ExpiresByType image/png "access plus 7 days" ExpiresByType text/css "access plus 7 days" ExpiresByType text/javascript "access plus 7 days" ExpiresByType application/x-javascript "access plus 7 days" ExpiresByType application/javascript "access plus 7 days" ExpiresByType application/x-font-woff "access plus 7 days" # ---- WIKI SETUP ---- # -------------------- Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/scummvm.org/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/scummvm.org/privkey.pem