Last active
May 1, 2018 11:27
-
-
Save charlieanstey/ece8fea275b1a405054d to your computer and use it in GitHub Desktop.
#Apache :: Proxy config, HTTP, HTTPS SSL TLS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTP Proxy | |
# against specific NIC | |
<VirtualHost 10.10.10.1:80> | |
ServerName example.com | |
ProxyPreserveHost On | |
ProxyRequests Off | |
ProxyPass / http://10.10.10.2:80/ | |
ProxyPassReverse / http://10.10.10.2:80/ | |
ProxyTimeout 60 | |
</VirtualHost> | |
# HTTPS Proxy | |
# against specific NIC (required) | |
<VirtualHost 10.10.10.1:443> | |
ServerName example.com | |
SSLEngine On | |
SSLProxyEngine on | |
SSLCertificateFile /etc/apache2/ssl/example.com.chained.pem | |
ProxyPreserveHost On | |
ProxyRequests Off | |
ProxyPass / https://10.10.10.2:443/ | |
ProxyPassReverse / https://10.10.10.2:443/ | |
ProxyTimeout 60 | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment