1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-01 21:27:22 +02:00

Changed the alias to only serve on the admin dir

This commit is contained in:
Git Repository
2017-05-22 10:05:55 -07:00
parent 378ba271de
commit 0bbe7106bc
3 changed files with 11 additions and 7 deletions

View File

@@ -18,9 +18,7 @@
location = /.well-known/autoconfig/mail/config-v1.1.xml {
alias /var/lib/mailinabox/mozilla-autoconfig.xml;
}
location /mailinabox {
alias /usr/local/mailinabox;
}
# Roundcube Webmail configuration.
rewrite ^/mail$ /mail/ redirect;
rewrite ^/mail/$ /mail/index.php;

View File

@@ -1,4 +1,10 @@
# Control Panel
# Admin assets directory
location /admin/assets {
alias /usr/local/mailinabox/vendor/assets;
}
# Proxy /admin to our Python based control panel daemon. It is
# listening on IPv4 only so use an IP address and not 'localhost'.
rewrite ^/admin$ /admin/;