File: //etc/apache2/sites-enabled/020-squarehillcompany.com.conf
<VirtualHost *:80>
ServerName squarehillcompany.com
ServerAlias www.squarehillcompany.com
DocumentRoot /var/www/vhosts/squarehillcompany.com/docroot
ErrorLog ${APACHE_LOG_DIR}/squarehillcompany.com-error_log
CustomLog ${APACHE_LOG_DIR}/squarehillcompany.com-access_log common
RewriteEngine on
RewriteCond %{SERVER_NAME} =squarehillcompany.com [OR]
RewriteCond %{SERVER_NAME} =www.squarehillcompany.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<Directory /var/www/vhosts/squarehillcompany.com/docroot>
Options FollowSymLinks
AllowOverride All
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:unix:/run/php/squarehillcompany.com.sock|fcgi://squarehillcompany.com"
</FilesMatch>
<FilesMatch ".+\.phps$">
Require all denied
</FilesMatch>
<FilesMatch "^\.ph(ar|p|ps|tml)$">
Require all denied
</FilesMatch>
</Directory>
</VirtualHost>