* Add support for proxy pass target options * Add example usage
This commit is contained in:
parent
eaffddb0d0
commit
b1640f4f3d
@ -50,11 +50,12 @@
|
||||
{% set proxyvals = {
|
||||
'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'),
|
||||
'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)),
|
||||
'ProxyPassTargetOptions': proxyargs.get('ProxyPassTargetOptions', ''),
|
||||
'ProxyPassReverseSource': proxyargs.get('ProxyPassReverseSource', '/'),
|
||||
'ProxyPassReverseTarget': proxyargs.get('ProxyPassReverseTarget', site.get('ProxyPassTarget', 'https://{0}'.format(sitename))),
|
||||
} %}
|
||||
######### {{proxy}} #########
|
||||
ProxyPass {{ proxyvals.ProxyPassSource }} {{ proxyvals.ProxyPassTarget }}
|
||||
ProxyPass {{ proxyvals.ProxyPassSource }} {{ proxyvals.ProxyPassTarget }} {{ proxyvals.ProxyPassTargetOptions }}
|
||||
ProxyPassReverse {{ proxyvals.ProxyPassReverseSource }} {{ proxyvals.ProxyPassReverseTarget }}
|
||||
{% endfor %}
|
||||
{% if site.get('Formula_Append') %}
|
||||
|
@ -90,6 +90,7 @@ apache:
|
||||
# my sample route:
|
||||
# ProxyPassSource: '/'
|
||||
# ProxyPassTarget: 'http://www.example.net'
|
||||
# ProxyPassTargetOptions: 'connectiontimeout=5 timeout=30'
|
||||
# ProxyPassReverseSource: '/'
|
||||
# ProxyPassReverseTarget: 'http://www.example.net'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user