Skip to content

Instantly share code, notes, and snippets.

@eleddy
Created May 1, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eleddy/5972128bfa6673845216 to your computer and use it in GitHub Desktop.
Save eleddy/5972128bfa6673845216 to your computer and use it in GitHub Desktop.
...
$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