Pārlūkot izejas kodu

Correct ProxyPassTarget default for ProxyPassReverseTarget (#154)

According to the pillar.example file there is no site.ProxyPassTarget,
so ProxyPassReverseTarget should default to proxyargs.ProxyPassTarget
(ie. site.ProxyRoute.ProxyPassTarget)
tags/v0.37.4
John Kristensen pirms 8 gadiem
vecāks
revīzija
10ae336f12
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      apache/vhosts/proxy.tmpl

+ 1
- 1
apache/vhosts/proxy.tmpl Parādīt failu

@@ -53,7 +53,7 @@
'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))),
'ProxyPassReverseTarget': proxyargs.get('ProxyPassReverseTarget', proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename))),
} %}
######### {{proxy}} #########
ProxyPass {{ proxyvals.ProxyPassSource }} {{ proxyvals.ProxyPassTarget }} {{ proxyvals.ProxyPassTargetOptions }}

Notiek ielāde…
Atcelt
Saglabāt