View Single Post
Old 27th June 2006, 07:13
monster monster is offline
Junior Member
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by todvard
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)
Do i have to insert this for every domain i add?
Reply With Quote