diff --git a/manifests/vhost/proxy.pp b/manifests/vhost/proxy.pp index 72d091d..86d5622 100644 --- a/manifests/vhost/proxy.pp +++ b/manifests/vhost/proxy.pp @@ -26,7 +26,8 @@ define httpd::vhost::proxy ( $servername = undef, $serveraliases = undef, $ssl = false, - $vhost_name = '*' + $vhost_name = '*', + $proxyexclusions = undef, ) { include ::httpd diff --git a/templates/vhost-proxy.conf.erb b/templates/vhost-proxy.conf.erb index 05c6a8a..f275775 100644 --- a/templates/vhost-proxy.conf.erb +++ b/templates/vhost-proxy.conf.erb @@ -16,6 +16,12 @@ NameVirtualHost <%= @vhost_name %>:<%= @port %> Order deny,allow Allow from all + +<% if @proxyexclusions.is_a? Array %> + <% @proxyexclusions.each do |name| %><%= " ProxyPass #{name} !\n" %><% end %> +<% elsif @proxyexclusions != nil %> +<%= " ProxyPass #{@proxyexclusions} !" %> +<% end %> ProxyPass / <%= @dest %>/ ProxyPassReverse / <%= @dest %>/ ProxyPreserveHost On