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

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