Add proxyrequests directive (#144)
* Add ProxyRequests directive This allows or prevents Apache httpd from functioning as a forward proxy server. [See](https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxyrequests). The default action is off so I've set this a the default for this formula so it does not change the default behaviour. * Add example pillar usage
This commit is contained in:
parent
33170b1dce
commit
6382785cc9
@ -18,6 +18,7 @@
|
|||||||
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
|
'LogFormat': site.get('LogFormat', '"%h %l %u %t \\\"%r\\\" %>s %O"'),
|
||||||
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),
|
'CustomLog': site.get('CustomLog', '{0}/{1}-access.log'.format(map.logdir, sitename)),
|
||||||
|
|
||||||
|
'ProxyRequests': site.get('ProxyRequests', 'Off'),
|
||||||
'ProxyPreserveHost': site.get('ProxyPreserveHost', 'On'),
|
'ProxyPreserveHost': site.get('ProxyPreserveHost', 'On'),
|
||||||
'ProxyRoute': site.get('ProxyRoute', {}),
|
'ProxyRoute': site.get('ProxyRoute', {}),
|
||||||
} %}
|
} %}
|
||||||
@ -44,7 +45,7 @@
|
|||||||
SSLCertificateChainFile {{ site.SSLCertificateChainFile}}
|
SSLCertificateChainFile {{ site.SSLCertificateChainFile}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
ProxyRequests {{ vals.ProxyRequests }}
|
||||||
ProxyPreserveHost {{ vals.ProxyPreserveHost }}
|
ProxyPreserveHost {{ vals.ProxyPreserveHost }}
|
||||||
{% for proxy, proxyargs in vals.ProxyRoute|dictsort|reverse %}
|
{% for proxy, proxyargs in vals.ProxyRoute|dictsort|reverse %}
|
||||||
{% set proxyvals = {
|
{% set proxyvals = {
|
||||||
|
@ -85,6 +85,7 @@ apache:
|
|||||||
# RedirectTarget: 'http://www.example.net'
|
# RedirectTarget: 'http://www.example.net'
|
||||||
|
|
||||||
# if template is 'proxy.tmpl'
|
# if template is 'proxy.tmpl'
|
||||||
|
# ProxyRequests: 'On'
|
||||||
# ProxyPreserveHost: 'On'
|
# ProxyPreserveHost: 'On'
|
||||||
# ProxyRoute:
|
# ProxyRoute:
|
||||||
# my sample route:
|
# my sample route:
|
||||||
|
Loading…
Reference in New Issue
Block a user