expose the control panel only on PRIMARY_HOSTNAME since /admin might conflict with other stuff hosted on other domains

This commit is contained in:
Joshua Tauberer 2014-08-27 02:38:43 +00:00
parent da2af2ea5c
commit aa3bc3225e
2 changed files with 7 additions and 7 deletions

View File

@ -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.
rewrite ^/cloud$ /cloud/ redirect;
rewrite ^/cloud/$ /cloud/index.php;

View File

@ -24,13 +24,6 @@ server {
root $ROOT;
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.
rewrite ^/mail$ /mail/ redirect;
rewrite ^/mail/$ /mail/index.php;