Submitted by ITCiao on Sun, 03/10/2013 - 17:40
Hi,
Is there a way i can setup mail.domain.tld to redirect the same way webmail.domain.tld redirect to a custom link?
I need some general feature same as webmail.domain.tld.
Thank you.
Status:
Active
Comments
Submitted by andreychek on Sun, 03/10/2013 - 17:53 Comment #1
Howdy -- Virtualmin only has two built-in redirects, one for webmail.domain.tld, and one for admin.domain.tld.
There isn't a Virtualmin-supported system for setting up additional redirects, though you could always do it by first adding a new Virtual Server Alias, and then manually editing the Apache config to add redirect code. You can then copy the redirect code for the "webmail" alias in the Apache config.
Submitted by ITCiao on Sun, 03/10/2013 - 19:24 Comment #2
Any alternative method? Like modify the code or something?
Submitted by JamieCameron on Sun, 03/10/2013 - 20:05 Comment #3
It would take a fair bit of code modification to add an additional redirect.
Submitted by ITCiao on Mon, 03/11/2013 - 18:32 Comment #4
I added a simple rule in Vitualmin -> Services -> Configure Website -> Edit Directives
And it works on some domains but on others dosen't. What did i do wrong? What did i missed?
Submitted by andreychek on Mon, 03/11/2013 - 18:37 Comment #5
What happens when it doesn't work? Do you get an error of some sort?
And did you add a "mail.domain.tld" alias to those domains?
Also, make sure you restart Apache afterwards -- if Apache hasn't been restarted, those changes wouldn't be in effect.
Submitted by ITCiao on Mon, 03/11/2013 - 19:14 Comment #6
I don't get any errors. I just get index.html, same as i would be accesing from www.domain.tld.
I didn't add any domain alias, can't i use apache to redirect them since there allready is a DNS record for mail.domain.tld ?
Restarted apache.
Submitted by ITCiao on Mon, 03/11/2013 - 20:35 Comment #7
Ok, i got it working in 3 steps.
Works like a charm.