Kashall
February 22, 2019, 2:07am
1
Hi all,
My boss really likes the simplicity of MiaB after I introduced him to it, however he does not like having to go to https://mail.domain.com/mail to view webmail as its pretty long with the original domain on it.
Is there anyway we can perhaps move /mail to just being on mail.domain.com ?
Thanks, Kash.
murgero
February 22, 2019, 2:30am
2
I assume you meant “domain.com/mail ” correct? if so a simple HTML redirect will do the trick.
1 Like
Kashall
February 22, 2019, 2:32am
3
We have two servers. The first one is just a large server dedicated to hosting a couple websites for clients. The other one is just a dedicated MitB server. The domains A root is on the main webserver and mail.domain goes to MitB.
Kashall
February 22, 2019, 2:35am
4
We’re ok with mail.domain.com/calendar but we would much rather have the mail on the root of the subdomain.
murgero
February 22, 2019, 2:36am
5
Try put in the domain.com/mail dir in index.html
:
<html>
<head>
<meta http-equiv="refresh" content="0; URL='https://mail.domain.com/mail'" />
</head>
</html>
This will allow you to instead use https://domain.com/mail
and it will redirect to https://mail.domain.com/mail
Kashall
February 22, 2019, 2:38am
6
Won’t this be overwritten in the next MiaB update?
murgero
February 22, 2019, 2:42am
7
You said the webserver you use was external to your MIAB server correct? If so then this will never be over written.
But even if using the MIAB server as your webserver, /home/user-data/www/*
is not overwritten in updates.
1 Like
Kashall
February 22, 2019, 2:44am
8
So then there is really no way to just hide the /mail on mail.domain.com ?
murgero
February 22, 2019, 2:45am
9
You can modify the nginx local.conf file found in /etc/nginx/sites-enabled
folder to redirect /
to /mail
THIS IS AN UNSUPPORTED MOD HOWEVER
THIS WILL ALSO BE RESET UPON UPDATES AND NEW SITES BEING ADDED
Kashall
February 22, 2019, 3:04am
10
Yeah, I figured that would be the one thing that changes.
With that default, how could I make it so it substitutes domain.com for whatever the domain reached it?
for instance whatever YOURDOMAIN is here: mail.YOURDOMAIN.com -> mail.YOURDOMAIN.com/mail
murgero
February 22, 2019, 3:07am
11
Can you reword that question for me please?
murgero
February 22, 2019, 3:15am
12
POSSIBLE RESOLUTION:
Change the following file: /home/user-data/www/default/index.html
with:
<html>
<head>
<meta http-equiv="refresh" content="0; URL='https://mail.domain.com/mail'" />
</head>
</html>
Be sure to modify for your needs hope it helps!
Kashall
February 22, 2019, 3:20am
13
Sorry for late reply, the index.html folder is a default one so I was thinking by default it can redirect each webmail to its respective domain, but under closer inspection I realized that each domain redirects everything to the box’s webmail server.
murgero
February 22, 2019, 3:35am
14
yes, this file is the one served when you go to mail.domain.com/
system
Closed
March 1, 2019, 3:35am
15
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.