Commit e75f3152 authored by Jérome Perrin's avatar Jérome Perrin

component/apache: support zope path with a /

/a/b/$1 must become VirtualHostRoot/_vh_a/vh_b/$1 for zope's virtual
host monster to rewrite url properly
parent 7671b6ff
...@@ -201,7 +201,7 @@ Listen {{ ip }}:{{ port }} ...@@ -201,7 +201,7 @@ Listen {{ ip }}:{{ port }}
{% endif -%} {% endif -%}
{% for path, backend in path_mapping.items() %} {% for path, backend in path_mapping.items() %}
RewriteRule ^/{{path}}(.*) {{ backend }}/VirtualHostBase/https/{{ ip }}:{{ port }}/VirtualHostRoot/_vh_{{ path }}$1 [L,P] RewriteRule ^/{{path}}(.*) {{ backend }}/VirtualHostBase/https/{{ ip }}:{{ port }}/VirtualHostRoot/_vh_{{ path.replace('/', '/_vh_') }}$1 [L,P]
{% endfor -%} {% endfor -%}
</VirtualHost> </VirtualHost>
{% endfor -%} {% endfor -%}
\ No newline at end of file
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
# not need these here). # not need these here).
[template-apache-backend-conf] [template-apache-backend-conf]
filename = apache-backend.conf.in filename = apache-backend.conf.in
md5sum = 4777a443a8f5dc9b13e05b859f3db706 md5sum = 8bbba80016d8a0bebef93282ded87cda
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment