Add posibilty to run webmail on root '/'

master
hoellen 7 years ago
parent 50f2ea66c8
commit a1fb8442e3

@ -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;

Loading…
Cancel
Save