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