Skip to content

Instantly share code, notes, and snippets.

@eleddy eleddy/webserver.pp
Created May 1, 2014

Embed
What would you like to do?
...
$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
You can’t perform that action at this time.