Merge pull request #501 from hoellen/webmail-root
Add posibilty to run webmail on root '/'
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user