CentOS 4.1 Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux