mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-28 19:47:23 +01:00
expose the control panel only on PRIMARY_HOSTNAME since /admin might conflict with other stuff hosted on other domains
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
# Control Panel
|
||||||
|
rewrite ^/admin$ /admin/;
|
||||||
|
location /admin/ {
|
||||||
|
proxy_pass http://localhost:10222/;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
}
|
||||||
|
|
||||||
# ownCloud configuration.
|
# ownCloud configuration.
|
||||||
rewrite ^/cloud$ /cloud/ redirect;
|
rewrite ^/cloud$ /cloud/ redirect;
|
||||||
rewrite ^/cloud/$ /cloud/index.php;
|
rewrite ^/cloud/$ /cloud/index.php;
|
||||||
|
|||||||
@@ -24,13 +24,6 @@ server {
|
|||||||
root $ROOT;
|
root $ROOT;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|
||||||
# Control Panel
|
|
||||||
rewrite ^/admin$ /admin/;
|
|
||||||
location /admin/ {
|
|
||||||
proxy_pass http://localhost:10222/;
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Roundcube Webmail configuration.
|
# Roundcube Webmail configuration.
|
||||||
rewrite ^/mail$ /mail/ redirect;
|
rewrite ^/mail$ /mail/ redirect;
|
||||||
rewrite ^/mail/$ /mail/index.php;
|
rewrite ^/mail/$ /mail/index.php;
|
||||||
|
|||||||
Reference in New Issue
Block a user