Skip to content

Commit

Permalink
Added The ProxyPreserveHost option to vhosts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Conzar committed May 1, 2014
1 parent debc086 commit 920df08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
$php_admin_flags = [],
$php_admin_values = [],
$no_proxy_uris = [],
$proxy_preserve_host = false,
$redirect_source = '/',
$redirect_dest = undef,
$redirect_status = undef,
Expand Down
3 changes: 3 additions & 0 deletions templates/vhost/_proxy.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Proxy rules
ProxyRequests Off
<%- end -%>
<% if @proxy_preserve_host %>
ProxyPreserveHost On
<% end %>
<% [@proxy_pass].flatten.compact.each do |proxy| %>
ProxyPass <%= proxy['path'] %> <%= proxy['url'] %>
<Location <%= proxy['path']%>>
Expand Down

0 comments on commit 920df08

Please sign in to comment.