Merge pull request #766 from usrpro/fix-webmail-root

Fix webmail on root
master
Tim Möhlmann 6 years ago committed by GitHub
commit d19abc60bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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