Initial Chef repository
This commit is contained in:
23
cookbooks/apache2/templates/default/mods/proxy.conf.erb
Normal file
23
cookbooks/apache2/templates/default/mods/proxy.conf.erb
Normal file
@@ -0,0 +1,23 @@
|
||||
<IfModule mod_proxy.c>
|
||||
#turning ProxyRequests on and allowing proxying from all may allow
|
||||
#spammers to use your proxy to send email.
|
||||
|
||||
ProxyRequests Off
|
||||
|
||||
<Proxy *>
|
||||
AddDefaultCharset off
|
||||
<% if node['apache']['version'] == "2.4" -%>
|
||||
Require <%= node['apache']['proxy']['require'] %>
|
||||
<% else -%>
|
||||
Order <%= node['apache']['proxy']['order'] %>
|
||||
Deny from <%= node['apache']['proxy']['deny_from'] %>
|
||||
Allow from <%= node['apache']['proxy']['allow_from'] %>
|
||||
<% end -%>
|
||||
</Proxy>
|
||||
|
||||
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
|
||||
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
|
||||
# Set to one of: Off | On | Full | Block
|
||||
|
||||
ProxyVia On
|
||||
</IfModule>
|
||||
Reference in New Issue
Block a user