Commit aa3bc322 authored by Joshua Tauberer's avatar Joshua Tauberer

expose the control panel only on PRIMARY_HOSTNAME since /admin might conflict...

expose the control panel only on PRIMARY_HOSTNAME since /admin might conflict with other stuff hosted on other domains
parent da2af2ea
# 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 { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment