mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-19 21:08:37 +02:00
Webmail on root, fixes #757
This commit is contained in:
parent
be7dc1e6bd
commit
24828615cf
@ -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…
x
Reference in New Issue
Block a user