comparison modules/apache/templates/mod/proxy.conf.erb @ 257:675c1cc61eaf

Update Apache module to get CentOS 8 support Unfortunately it only fixes some bits. mod_wsgi still needs other approaches This also overrides the vhost modification to make them come last in the import order (after module loading)
author IBBoard <dev@ibboard.co.uk>
date Sun, 22 Dec 2019 14:43:29 -0500
parents 37675581a273
children d9352a684e62
comparison
equal deleted inserted replaced
252:47750947f4dc 257:675c1cc61eaf
8 # Internet at large. 8 # Internet at large.
9 ProxyRequests <%= @proxy_requests %> 9 ProxyRequests <%= @proxy_requests %>
10 10
11 <% if @proxy_requests != 'Off' or ( @allow_from and ! @allow_from.empty? ) -%> 11 <% if @proxy_requests != 'Off' or ( @allow_from and ! @allow_from.empty? ) -%>
12 <Proxy *> 12 <Proxy *>
13 <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%> 13 <%- if scope.function_versioncmp([@_apache_version, '2.4']) >= 0 -%>
14 Require ip <%= Array(@allow_from).join(" ") %> 14 Require ip <%= Array(@allow_from).join(" ") %>
15 <%- else -%> 15 <%- else -%>
16 Order deny,allow 16 Order deny,allow
17 Deny from all 17 Deny from all
18 Allow from <%= Array(@allow_from).join(" ") %> 18 Allow from <%= Array(@allow_from).join(" ") %>
21 <% end -%> 21 <% end -%>
22 22
23 # Enable/disable the handling of HTTP/1.1 "Via:" headers. 23 # Enable/disable the handling of HTTP/1.1 "Via:" headers.
24 # ("Full" adds the server version; "Block" removes all outgoing Via: headers) 24 # ("Full" adds the server version; "Block" removes all outgoing Via: headers)
25 # Set to one of: Off | On | Full | Block 25 # Set to one of: Off | On | Full | Block
26 ProxyVia On 26 ProxyVia <%= @proxy_via %>
27 </IfModule> 27 </IfModule>