Created
September 19, 2016 22:32
-
-
Save SmugZombie/3dcb239c27dcaec841e1608a5e2ffdee to your computer and use it in GitHub Desktop.
Apache Configuration for a HTTPS to HTTP proxy.
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
| <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