httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Fleck <fleck...@umn.edu>
Subject Re: [users@httpd] Multiple Names for site
Date Tue, 30 Sep 2003 18:49:00 GMT
>Peter Fleck wrote:
>>I want one site to be available with two domain names. Using 
>>virtual hosts, this looks like the way to do it:
>>
>>  <VirtualHost www.cancer.umn.edu octopus.cancer.umn.edu>
>>
>>Is that it? Now the site will be available from either domain.
>>
>[ This is for apache 1.3.x - might or might not be similar for apache 2.x ]


Sorry. I'm using Apache 2.0.40 and I referred to the 2.x documentation.


>
>You want something like:
>
>NameVirtualHost ip_address
>.
>.
>.
><VirtualHost ip_address:80>
>	ServerName www.cancer.umn.edu
>	ServerAlias octopus.cancer.umn.edu
>	.
>	.
>	.
></VirtualHost>
>
>If you have UseCanonicalName On, then $ENV{SERVER_NAME} is set to 
>whatever is in the ServerName directive (and is used wherever the 
>server has to construct self-referencing URLs), if UseCanonicalName 
>is off, $ENV{SERVER_NAME} is set to whatever server name is in the 
>URL

-- 
Peter Fleck
Webmaster | University of Minnesota Cancer Center
Dinnaken Office Bldg.
925 Delaware St. SE
Minneapolis, MN  55414
612-625-8668 | fleck004@umn.edu | www.cancer.umn.edu
Campus Mail: MMC 806

---------------------------------------------------------------------
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