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