Created
May 1, 2014 22:33
-
-
Save eleddy/5972128bfa6673845216 to your computer and use it in GitHub Desktop.
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
... | |
$custom_fragment_proxy_pass = ' | |
RewriteEngine on | |
RewriteMap lowercase int:tolower | |
RewriteRule ^ - [E=SERVER_NAME:${lowercase:%{SERVER_NAME}}] | |
ProxyPassInterpolateEnv On | |
BrowserMatch "MSIE [2-6]" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 | |
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown' | |
... | |
apache::vhost { 'subdomain.mysite.com ssl': | |
servername => 'subdomain.mysite.com', | |
serveraliases => ['*.subdomain.mysite.com',], | |
docroot => '/var/www/ampsport.com', | |
port => '443', | |
priority => 21, | |
ssl => true, | |
ssl_honorcipherorder => 'On', | |
ssl_cipher => $ssl_cipher, | |
rewrites => [ | |
{ | |
rewrite_cond => ['%{HTTP_HOST} ^www\.(.*) [NC]'], | |
rewrite_rule => ['^(.*) https://%1$1 [R=301,L]'], | |
} | |
], | |
proxy_pass => [ | |
{ 'path' => '/', | |
'url' => 'http://127.0.0.1:9090/VirtualHostBase/https/${SERVER_NAME}:443/SUBDOMAIN/VirtualHostRoot/ interpolate', | |
}, | |
], | |
custom_fragment => $custom_fragment_proxy_pass, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment