NameVirtualHost 10.1.1.8

<VirtualHost 10.1.1.8>
  ServerName   www.domain1.com
  DocumentRoot /usr/local/apache/htdocs
  ...
</VirtualHost>

<VirtualHost 10.1.1.8>
  ServerName  www.domain2.com
  ...
</VirtualHost>

should do it.

> i was trying to configure my apache 1.3 running in red hat linux 6, in order
> to enable virtual server.I have only 1 IP address and want to run 2
> web-sites say www.domain.com and www.otherdomain.com  for that, i read the
> apache documentation, and it suggested editing the httpd.conf file so as to
> add the following :
> 
> ServerName testing.com
> Name virtualHost 192.168.99.99
> 
> <VirtualHost 192.168.99.99>
> DocumentRoot /home/httpd/domain
> ServerName www.domain.com
> </VirtualHost>
> 
> <VirtualHost 192.168.99.99>
> DocumentRoot /home/httpd/otherdomain
> ServerName www.otherdomain.com
> </VirtualHost>
> 
> But it doesn't work, on entering www.domain.com or www.otherdomain.com in my
> browser (The ip address is okay, coz on entering the ip address in the
> browser, i get the testing.com site...
> Also, i haven't touched the other entries in the httpd.conf file...
> Please help me,
> Thanks a million ...
> Gaurav Agarwal
> www.prayagonline.com
> 


------------------------------------------------------
 The books that the world calls immoral are the books
 that show the world its own shame.
         Oscar Wilde
------------------------------------------- 490/1424 -

Martin Krzywinski
System Administrator
Genome Sequence Center
BC Cancer Research Center
601 West 10th Avenue
Vancouver, BC V5Z 1L3
tel: (604) 415-7184
fax: (604) 415-7192
http://www.cigenomics.bc.ca


Reply via email to