ServerName forums.scummvm.org
Redirect permanent / https://forums.scummvm.org/
RewriteEngine on
RewriteCond %{SERVER_NAME} =forums.scummvm.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ServerName forums.scummvm.org
ServerAdmin webmaster@scummvm.org
DocumentRoot /var/www/forums
SuexecUserGroup forums forums
ErrorLog ${APACHE_LOG_DIR}/forums_error.log
CustomLog ${APACHE_LOG_DIR}/forums_access.log combined
# ---- FORUMS SETUP ----
# ----------------------
SetHandler "proxy:unix:/run/php/php-fpm-forums.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"
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/scummvm.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/scummvm.org/privkey.pem