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

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

<VirtualHost 192.168.1.1:80>
ServerName mail.*:80
ServerAdmin webmaster@domain.com

DocumentRoot /var/www/sharedip

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

</VirtualHost>

It will redicrect all incoming querys from http://mail.* to https://webmail.domain.com (of course, "webmail" hosname in domain.com 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