Commit ebf2be5d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Merge branch 'erp5' into erp5-z2.13

parents aeaa6f4b 2a2f864b
...@@ -76,8 +76,7 @@ class Recipe(GenericBaseRecipe): ...@@ -76,8 +76,7 @@ class Recipe(GenericBaseRecipe):
'vhosts': ''.join(self.substituteTemplate(vhost_template_name, { 'vhosts': ''.join(self.substituteTemplate(vhost_template_name, {
'ip': ip, 'ip': ip,
'port': port, 'port': port,
'backend': backend, 'backend': ('%s/%s' % (backend.rstrip('/'), backend_path.strip('/'))).rstrip('/'),
'backend-path': backend_path,
'ssl_enable': ssl_enable, 'ssl_enable': ssl_enable,
}) for (port, backend) in backend_list), }) for (port, backend) in backend_list),
}, },
......
Listen %(ip)s:%(port)s Listen %(ip)s:%(port)s
<VirtualHost *:%(port)s> <VirtualHost *:%(port)s>
%(ssl_enable)s %(ssl_enable)s
RewriteRule ^/(.*) %(backend)s%(backend-path)s/$1 [L,P] RewriteRule ^/(.*) %(backend)s/$1 [L,P]
</VirtualHost> </VirtualHost>
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