Add posibilty to run webmail on root '/'

This commit is contained in:
hoellen
2018-06-25 15:45:43 +02:00
parent 50f2ea66c8
commit a1fb8442e3

View File

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