View Single Post
Old 21st June 2006, 12:46
todvard todvard is offline
Join Date: Aug 2005
Posts: 85
Thanks: 1
Thanked 6 Times in 5 Posts

you can create a virtualhost in Apache (not in ISPConfig) with this content:

ServerName mail.*:80

DocumentRoot /var/www/sharedip

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail..+..+$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*)$$1 [R=301]


It will redicrect all incoming querys from http://mail.* to (of course, "webmail" hosname in domain should exist, and "mail" host in all domains too, you can create them in DNS Manager)

Last edited by todvard; 21st June 2006 at 13:03.
Reply With Quote