On Sun, Jul 29, 2001 at 04:18:29AM +0700, loeung vidol wrote:
> Hi all:
> 
> My linux box has hostname set to: server.its.com and www.its.com is an alias
> (CNAME) for it. I could enter this URL:
> 
> http://www.its.com/
> or
> http://server.its.com/
> 
> and see the Apache's test page.
> 
> I added a [name-based] virtual host as follows:
> 
> NameVirtualHost 192.168.1.100
> <VirtualHost 192.168.1.100>
>     ServerName www.caltex.com
>     DocumentRoot /home/www/caltex
> </VirtualHost>
You did specify one Virtual Host with name 192.168.1.100. Do the following:
NameVirtualHost 192.168.1.100
<VirtualHost www.caltex.com>
     ServerName www.caltex.com
     DocumentRoot /home/www/caltex
</VirtualHost>
<VirtualHost www.its.com>
     ServerName www.its.com
     DocumentRoot /home/www/its
</VirtualHost>

> 
> Now, when I enter this URL:
> 
> http://www.its.com
> or
> http://www.caltex.com
> 
> The index.html file in the DocumentRoot for www.caltex.com (in
> /home/www/caltex/) is always the one that gets displayed on the browser. The
> URL http://www.its.com/  does not get the Apache's test page anymore.
> 
> What could be the cause of this?
> 
> Note: I also added the DNS zone for caltex.com.kh and set the www.caltex.com
> as CNAME to server.its.com, as required for the virutal hosting.
> 
> Any ideas would be very much appreciated.
> 
> Regards,
> Vidol
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Seawolf-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/seawolf-list

-- 
Ralf Spenneberg
MCSE+I, MCT, RHCE, RHCX, LCP, Linux-Consultant
Waldring 34                             48565 Steinfurt
Fon: +49(0)2552 638 755                 Fax: +49(0)2552 638 757
Mobil: +49(0)177 567 27 40              http://www.spenneberg.com/.net/.org/.de



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to