On Tue, Apr 03, 2001 at 11:39:46PM -0500, Y2KNET wrote: > The dns files resides on server ns1.abc.net > the first dns file is abc.hosts and following is its > configuration: > > IN NS ns1.abc.net. > IN NS ns2.abc.net. > > ns1 IN A 192.55.34.3 > ns2 IN A 192.55.34.4 > ...... > www.abc.net. IN CNAME ns1.abc.net. > > The second file for virtual host is xzz.hosts and > following is its configuration: > > IN NS ns1.abc.net. > IN NS ns2.abc.net. > > xyz.net IN A 192.55.34.5 > ...... > www.xyz.net. IN CNAME xyz.net. > > In my /etc/apache all configuration files are set for > my primary site www.abc.net. Then I used the > following configuration for virtual host site www.xyz.net: > > Listen 192.55.34.5:80 > NameVirtualHost 192.55.34.5:80 > > <VirtualHost 192.241.171.5:80> > DocumentRoot /var/www/xyz > ServerName www.xyz.net > .... > </VirtualHost> > > With this configurartion none of my site comes up. > > Can someone tell me where I am making mistake. Well, the fact that the IP in the VirtualHost directive isn't the same IP that appears in the Listen directive or the NameVirtualHost directive appears to be a glaring error. With the setup above you should have apache like this: | Listen 192.55.34.5:80 | NameVirtualHost 192.55.34.5:80 | | <VirtualHost 192.55.34.5:80> | ServerName www.abc.net | DocumentRoot /var/www/xyz/ | </VirtualHost> | | <VirtualHost 192.55.34.5:80> | ServerName xyz.net | ServerAlias www.xyz.net | DocumentRoot /var/www/xyz | </VirtualHost> I have no idea where you got 192.241.171.5 from. BTW, CNAMEs are gross. Use A records. -- Nathan Norman - Staff Engineer | A good plan today is better Micromuse Ltd. | than a perfect plan tomorrow. mailto:nnorman@micromuse.com | -- Patton
Attachment:
pgpQe0I8_NqDQ.pgp
Description: PGP signature