File: //etc/apache2/sites-enabled/insiders-view.co.uk.conf
<VirtualHost *:80>
ServerName insiders-view.co.uk
ServerAlias www.insiders-view.co.uk
DocumentRoot /home/insiders-view.co.uk/public_html
ErrorLog ${APACHE_LOG_DIR}/insiders-view.co.uk.error.log
CustomLog ${APACHE_LOG_DIR}/insiders-view.co.uk.access.log combined
DirectoryIndex index.php index.html
<Directory /home/insiders-view.co.uk/public_html>
AllowOverride all
Require all granted
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/insiders-viewcouk.sock|fcgi://localhost/"
</FilesMatch>
RewriteEngine on
RewriteCond %{SERVER_NAME} =insiders-view.co.uk [OR]
RewriteCond %{SERVER_NAME} =www.insiders-view.co.uk
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet