浏览代码

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

Fix Jinja's reverse
tags/v0.37.4
Forrest 9 年前
父节点
当前提交
39176444d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      apache/vhosts/proxy.tmpl

+ 1
- 1
apache/vhosts/proxy.tmpl 查看文件

@@ -35,7 +35,7 @@
{% if site.get('CustomLog') != False %}CustomLog {{ vals.CustomLog }} {{ vals.LogFormat }}{% endif %}

ProxyPreserveHost {{ vals.ProxyPreserveHost }}
{% for proxy, proxyargs in reverse(vals.ProxyRoute.items()) %}
{% for proxy, proxyargs in vals.ProxyRoute|dictsort|reverse %}
{% set proxyvals = {
'ProxyPassSource': proxyargs.get('ProxyPassSource', '/'),
'ProxyPassTarget': proxyargs.get('ProxyPassTarget', 'https://{0}'.format(sitename)),

正在加载...
取消
保存