Move the webmail to /webmail, fixes #82

This commit is contained in:
Pierre Jaury
2016-10-30 11:33:29 +01:00
parent 013286b8e1
commit 6c800e8b63
3 changed files with 20 additions and 8 deletions

View File

@@ -48,6 +48,16 @@ http {
# Actual logic
location / {
if ($webmail != none) {
return 301 $scheme://$host/webmail/;
}
if ($webmail = none) {
return 403;
}
}
location /webmail {
if ($webmail != none) {
proxy_pass http://webmail;
}