httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark McCulligh" <mmccu...@visualtech.ca>
Subject [users@httpd] ServerAlias Question
Date Mon, 17 Mar 2003 19:29:17 GMT
I have a web site will more the one domain name (Example: www.site1.com and
www.site2.com)

I want when someone goes to www.site2.com they are redirected to
www.site1.com

Can I do this through VirtualHost using ServerAlias.
<VirtualHost *>
    ServerName www.site1.com
    ServerAlias www.site2.com
 </VirtualHost>

Right now I uses to two different VirtualHost directories, one for both
domain names and have only one php page in site2 with a redirect command. I
assume there is a better way to do this through Apache.

thanks,
Mark.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message