Merge pull request #48 from multani/fix-jinja-reverse

Fix Jinja's reverse
This commit is contained in:
Forrest 2015-03-25 19:25:38 -07:00
commit 39176444d1

View File

@ -35,7 +35,7 @@
{% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %} {% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %}
ProxyPreserveHost {{ vals.ProxyPreserveHost }} ProxyPreserveHost {{ vals.ProxyPreserveHost }}
{% for proxy, proxyargs in reverse(vals.ProxyRoute.items()) %} {% for proxy, proxyargs in vals.ProxyRoute|dictsort|reverse %}
{% set proxyvals = { {% set proxyvals = {
'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'), 'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'),
'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)), 'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)),