Skip to content

Instantly share code, notes, and snippets.

@intsdev
Last active July 12, 2020 08:34
Show Gist options
  • Save intsdev/165a839baeb9066fe970e7921b230d76 to your computer and use it in GitHub Desktop.
Save intsdev/165a839baeb9066fe970e7921b230d76 to your computer and use it in GitHub Desktop.
Apache proxy
<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