View Full Version : subdomain URL to webmail
torusturtle
23rd August 2006, 14:38
Hi
Is it possible to redirect a subdomain for example webmail.domain.tld to the webmail https://www.domain.tld:81/roundcubemail?
Thanks for your help.
torusturtle
23rd August 2006, 21:11
I found this:
http://www.howtoforge.com/forums/showthread.php?t=6174
Ovidiu
23rd August 2006, 22:56
I use something like this:
<VirtualHost 85.214.51.208:443>
ServerName webmail
ServerAlias mail.*
ServerAdmin postmaster@web-designerz.de
DocumentRoot /var/www/webmail/web
<VirtualHost 85.214.51.208:80>
ServerName webmail
ServerAlias mail.*
RewriteEngine On
RewriteRule (.*) https://%{SERVER_NAME}:443 [R]
</VirtualHost>
what it does is this: the first virtual host catches all domains that start with mail.whatever and redirects them to a single install of the webmailer of my choice (you could use roundcube).
The second virtualhost takes every request on port 80 and forwards it to port 443 so that my users can only use webmal via ssl.
Now here you have 2 possibilities to play around with, the one is a kind of a catchall for subdomains, you could use webmail.*, the other method works with a redirect, use whatever you like.
p.s. these virtualhosts go into /etc/apache2/apache.conf (if you are using debian)
justr some ideas to keep you going...
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.