Merge pull request #501 from hoellen/webmail-root

Add posibilty to run webmail on root '/'
This commit is contained in:
kaiyou
2018-06-28 14:13:40 +02:00
committed by GitHub

View File

@@ -84,9 +84,11 @@ http {
# Actual logic # Actual logic
{% if WEBMAIL != 'none' %} {% if WEBMAIL != 'none' %}
{% if WEB_WEBMAIL != '/' %}
location / { location / {
return 301 {{ WEB_WEBMAIL }}; return 301 {{ WEB_WEBMAIL }};
} }
{% endif %}
location {{ WEB_WEBMAIL }} { location {{ WEB_WEBMAIL }} {
rewrite ^({{ WEB_WEBMAIL }})$ $1/ permanent; rewrite ^({{ WEB_WEBMAIL }})$ $1/ permanent;