Hi folks, I've just put CentOS 4.1 on my webserver, displacing OpenBSD (1 up for Linux :-)) I found that the Virtual Hosts function doesn't appear to work. All virtual hosts accesses default to the main www directory instead of serving from their respective directories. Has anyone else found the same problem? Thanks. Ben
On Sunday 03 July 2005 21:51, Ben wrote:> I found that the Virtual Hosts function doesn't appear to work. All > virtual hosts accesses default to the main www directory instead of > serving from their respective directories. > > Has anyone else found the same problem?Seems to work here - have you checked your apachectl -S output? Peter.
On Sun, 2005-07-03 at 18:51 -0700, Ben wrote:> Hi folks, > > I've just put CentOS 4.1 on my webserver, displacing OpenBSD (1 up for > Linux :-)) > > I found that the Virtual Hosts function doesn't appear to work. All > virtual hosts accesses default to the main www directory instead of > serving from their respective directories. > > Has anyone else found the same problem? >It works fine ... if it didn't, CentOS wouldn't be much of an Enterprise OS :) Make sure to un-remark the line: NameVirtualHost *:80 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20050703/aa516988/attachment-0002.sig>
On Sun, 03 Jul 2005 21:01:25 -0500, you wrote: %On Sun, 2005-07-03 at 18:51 -0700, Ben wrote: %> Hi folks, %> %> I've just put CentOS 4.1 on my webserver, displacing OpenBSD (1 up for %> Linux :-)) %> %> I found that the Virtual Hosts function doesn't appear to work. All %> virtual hosts accesses default to the main www directory instead of %> serving from their respective directories. %> %> Has anyone else found the same problem? %> % %It works fine ... if it didn't, CentOS wouldn't be much of an Enterprise %OS :) % %Make sure to un-remark the line: % %NameVirtualHost *:80 I did. Here's a snip: NameVirtualHost xxx.xxx.xxx.xxx:80 <VirtualHost xxx.xxx.xxx.xxx:80> DocumentRoot /www/svgeek ServerName www.svgeek.com </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> DocumentRoot /www/bluesky ServerName www.blueskyinnovations.com </VirtualHost> <VirtualHost xxx.xxx.xxx.xxx:80> DocumentRoot /www/bluesky ServerName www.power-boot.com </VirtualHost> where xxx.xxx.xxx.xxx is the external/public IP address. Ben