[CentOS] NameVirtualHost and CGI Problems

Kai Schaetzl maillists at conactive.com
Thu Oct 9 20:42:06 UTC 2008


Mike -- EMAIL IGNORED wrote on Thu, 9 Oct 2008 20:14:10 +0000 (UTC):

> I am therefore
> left with the need to remove the VirtualHost that
> has no ServerName.  I can access the site with an
> IP address, which, I think, this is meant to prevent.

I still don't see the purpose of that virtual host. If it is for 
"catching" IP only accesses there are several methods to do this. Look for 
 "default virtualhost" in the apache documentation (and in the config 
template coming with CentOS). Also, if that single virtualhost 
documentroot and the main documentroot (in httpd.conf) are not the same 
then all non-hostname access will got to the main server documentroot and 
not your virtual host.

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com





More information about the CentOS mailing list