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