Skip to content

Instantly share code, notes, and snippets.

@SmugZombie
Created September 19, 2016 22:32
Show Gist options
  • Select an option

  • Save SmugZombie/3dcb239c27dcaec841e1608a5e2ffdee to your computer and use it in GitHub Desktop.

Select an option

Save SmugZombie/3dcb239c27dcaec841e1608a5e2ffdee to your computer and use it in GitHub Desktop.
Apache Configuration for a HTTPS to HTTP proxy.
<VirtualHost *:443>
ServerAdmin root@localhost.com
ServerName proxy.mydomain.com
SSLEngine on
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/apache2/ssl/myssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/myssl.key
SSLCertificateChainFile /etc/apache2/ssl/mysslcf.crt
ProxyPreserveHost On
<Proxy *>
Order Deny,Allow # Denys from ALL, unless Allowed below
Deny from all
Allow from 68.68.68.25
</Proxy>
ProxyPass / http://172.31.32.100:80/
ProxyPassReverse / http://172.31.32.100:80/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment