28
|
1 |
#
|
|
2 |
# Proxy Server directives. Uncomment the following lines to
|
|
3 |
# enable the proxy server:
|
|
4 |
#
|
|
5 |
<IfModule mod_proxy.c>
|
|
6 |
# Do not enable proxying with ProxyRequests until you have secured your
|
|
7 |
# server. Open proxy servers are dangerous both to your network and to the
|
|
8 |
# Internet at large.
|
|
9 |
ProxyRequests <%= @proxy_requests %>
|
|
10 |
|
|
11 |
<% if @proxy_requests != 'Off' or ( @allow_from and ! @allow_from.empty? ) -%>
|
|
12 |
<Proxy *>
|
|
13 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
14 |
Require ip <%= Array(@allow_from).join(" ") %>
|
|
15 |
<%- else -%>
|
|
16 |
Order deny,allow
|
|
17 |
Deny from all
|
|
18 |
Allow from <%= Array(@allow_from).join(" ") %>
|
|
19 |
<%- end -%>
|
|
20 |
</Proxy>
|
|
21 |
<% end -%>
|
|
22 |
|
|
23 |
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
|
|
24 |
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
|
|
25 |
# Set to one of: Off | On | Full | Block
|
|
26 |
ProxyVia On
|
|
27 |
</IfModule>
|