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