You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-15 01:24:34 +02:00
Merge pull request #766 from usrpro/fix-webmail-root
Fix webmail on root
This commit is contained in:
@ -87,14 +87,15 @@ http {
|
||||
include /overrides/*.conf;
|
||||
|
||||
# Actual logic
|
||||
|
||||
{% if WEB_WEBMAIL != '/' %}
|
||||
location / {
|
||||
{% if WEBROOT_REDIRECT and WEB_WEBMAIL != '/' %}
|
||||
{% if WEBROOT_REDIRECT %}
|
||||
return 301 {{ WEBROOT_REDIRECT }};
|
||||
{% else %}
|
||||
return 404;
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if WEBMAIL != 'none' %}
|
||||
location {{ WEB_WEBMAIL }} {
|
||||
|
Reference in New Issue
Block a user