diff --git a/apache/vhosts/proxy.tmpl b/apache/vhosts/proxy.tmpl index 36b1887..5c6115c 100644 --- a/apache/vhosts/proxy.tmpl +++ b/apache/vhosts/proxy.tmpl @@ -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') %} diff --git a/pillar.example b/pillar.example index 5b8cad7..9ad1070 100644 --- a/pillar.example +++ b/pillar.example @@ -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'