File: //etc/apache2/sites-enabled/018-favepage-dev.2amigos.us-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName favepage-dev.2amigos.us
DocumentRoot /var/www/vhosts/favepage-dev.2amigos.us/docroot/build
<Directory /var/www/vhosts/favepage-dev.2amigos.us/docroot/build>
Options FollowSymLinks
AllowOverride All
Allow from 107.20.185.102
Allow from 138.201.82.136
Allow from 3.209.222.142
Satisfy any
AuthType Basic
AuthBasicProvider file
AuthUserFile /var/www/vhosts/.htpasswd.favepage
AuthName secure
Require valid-user
</Directory>
# ProxyPass / http://127.0.0.1:14200/
# ProxyPassReverse / http://127.0.0.1:14200/
# ProxyRequests Off
Alias /deploy /var/www/vhosts/favepage-dev.2amigos.us/cgi-bin/
<Directory "/var/www/vhosts/favepage-dev.2amigos.us/cgi-bin">
AllowOverride None
Options None
<IfModule setenvif_module>
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
</IfModule>
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:unix:/run/php/deploy_favepage-dev.2amigos.us.sock|fcgi://deploy_favepage-dev.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}/favepage-dev.2amigos.us-error_log
CustomLog ${APACHE_LOG_DIR}/favepage-dev.2amigos.us-access_log common
SSLCertificateFile /etc/letsencrypt/live/favepage-dev.2amigos.us/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/favepage-dev.2amigos.us/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>