Last active
July 12, 2020 08:34
-
-
Save intsdev/165a839baeb9066fe970e7921b230d76 to your computer and use it in GitHub Desktop.
Apache proxy
This file contains 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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
# ... | |
SSLEngine On | |
SSLProxyEngine On | |
SSLProxyVerify none | |
SSLProxyCheckPeerCN off | |
SSLProxyCheckPeerName off | |
# ... | |
</VirtualHost> | |
</IfModule> | |
<Location "/images/" > | |
# ProxyPreserveHost On | |
# Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" | |
ProxyPass "https://cdn.example.com/" | |
# ProxyPassReverse "https://cdn.example.com/" | |
# ProxyPassReverseCookiePath "/test/" "/test/" | |
Order allow,deny | |
Allow from all | |
</Location> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment