1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00: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 { location = /.well-known/autoconfig/mail/config-v1.1.xml {
alias /var/lib/mailinabox/mozilla-autoconfig.xml; alias /var/lib/mailinabox/mozilla-autoconfig.xml;
} }
location /mailinabox {
alias /usr/local/mailinabox;
}
# Roundcube Webmail configuration. # Roundcube Webmail configuration.
rewrite ^/mail$ /mail/ redirect; rewrite ^/mail$ /mail/ redirect;
rewrite ^/mail/$ /mail/index.php; rewrite ^/mail/$ /mail/index.php;

View File

@ -1,4 +1,10 @@
# Control Panel # 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 # Proxy /admin to our Python based control panel daemon. It is
# listening on IPv4 only so use an IP address and not 'localhost'. # listening on IPv4 only so use an IP address and not 'localhost'.
rewrite ^/admin$ /admin/; rewrite ^/admin$ /admin/;

View File

@ -9,7 +9,7 @@
<meta name="robots" content="noindex, nofollow"> <meta name="robots" content="noindex, nofollow">
<link rel="stylesheet" href="/mailinabox/vendor/assets/bootstrap.min.css"> <link rel="stylesheet" href="/admin/assets/bootstrap.min.css">
<style> <style>
body { body {
overflow-y: scroll; overflow-y: scroll;
@ -63,7 +63,7 @@
margin-bottom: 1em; margin-bottom: 1em;
} }
</style> </style>
<link rel="stylesheet" href="/mailinabox/vendor/assets/bootstrap-theme.min.css"> <link rel="stylesheet" href="/admin/assets/bootstrap-theme.min.css">
</head> </head>
<body> <body>
@ -191,8 +191,8 @@
</div> </div>
</div> </div>
<script src="/mailinabox/vendor/assets/jquery.min.js"></script> <script src="/admin/assets/jquery.min.js"></script>
<script src="/mailinabox/vendor/assets/bootstrap.min.js"></script> <script src="/admin/assets/bootstrap.min.js"></script>
<script> <script>
var global_modal_state = null; var global_modal_state = null;