Skip to content

Instantly share code, notes, and snippets.

@charlieanstey
Last active May 1, 2018 11:27
Show Gist options
  • Save charlieanstey/ece8fea275b1a405054d to your computer and use it in GitHub Desktop.
Save charlieanstey/ece8fea275b1a405054d to your computer and use it in GitHub Desktop.
#Apache :: Proxy config, HTTP, HTTPS SSL TLS
# 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