Webmail on root, fixes #757

master
Tim Möhlmann 6 years ago
parent be7dc1e6bd
commit 24828615cf
No known key found for this signature in database
GPG Key ID: 8677988D8072E8DE

@ -87,14 +87,15 @@ http {
include /overrides/*.conf; include /overrides/*.conf;
# Actual logic # Actual logic
{% if WEB_WEBMAIL != '/' %}
location / { location / {
{% if WEBROOT_REDIRECT and WEB_WEBMAIL != '/' %} {% if WEBROOT_REDIRECT %}
return 301 {{ WEBROOT_REDIRECT }}; return 301 {{ WEBROOT_REDIRECT }};
{% else %} {% else %}
return 404; return 404;
{% endif %} {% endif %}
} }
{% endif %}
{% if WEBMAIL != 'none' %} {% if WEBMAIL != 'none' %}
location {{ WEB_WEBMAIL }} { location {{ WEB_WEBMAIL }} {

Loading…
Cancel
Save