diff --git a/Section_06/rev b/Section_06/rev deleted file mode 100644 index e6b1b78..0000000 --- a/Section_06/rev +++ /dev/null @@ -1,22 +0,0 @@ - ProxyPreserveHost On -ProxyPass / ​http://127.0.0.1:8080/ ProxyPassReverse / ​http://127.0.0.1:8080/ ServerName ​fleet.sandboxify.com - - - -ServerName ​fleet-dash.sandboxify.com ServerAdmin kt@esokia.com #DocumentRoot /var/www/html - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - SSLEngine On - SSLProxyEngine On - SSLProxyCheckPeerName Off - SSLProxyCheckPeerCN Off - SSLProxyVerify none - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateFile /etc/letsencrypt/live/fleet-dash.sandboxify.com/fullchain.pem - SSLCertificateKeyFile /etc/letsencrypt/live/fleet-dash.sandboxify.com/privkey.pem - RequestHeader set X-Forwarded-Proto "https" - RequestHeader set X-Forwarded-Port "443" -ProxyRequests Off -ProxyPreserveHost On -ProxyPass / ​https://127.0.0.1:8080/ ProxyPassReverse / ​https://127.0.0.1:8080/ - diff --git a/Section_06/reverse_proxy.conf b/Section_06/reverse_proxy.conf new file mode 100644 index 0000000..ee7b38a --- /dev/null +++ b/Section_06/reverse_proxy.conf @@ -0,0 +1,14 @@ + + # ServerName www.example.com + + ServerAdmin webmaster@localhost + # DocumentRoot /var/www/html + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + ProxyRequests Off + ProxyPreserveHost On + ProxyPass / ​https://127.0.0.1:5000/ + ProxyPassReverse / ​https://127.0.0.1:5000/ +