[CentOS] Re: NameVirtualHost and CGI Problems

Fri Oct 10 16:26:20 UTC 2008
Mike -- EMAIL IGNORED <m_d_berger_1900 at yahoo.com>

On Fri, 10 Oct 2008 18:01:24 +0930, admin wrote:

>> Have you run several Virtual Hosts with the same IP address?
> 
> Yes, I run multiple Virtual Hosts on my development server and they all
> look like this:
> 
> NameVirtualHost *:80
> 
> <VirtualHost *:80>
>    DocumentRoot /var/www/html/site1
>    ServerName site1.localhost
>    other stuff ....
> </VirtualHost>
> 
> <VirtualHost *:80>
>    DocumentRoot /var/www/html/site2
>    ServerName site2.localhost
>    other stuff ....
> </VirtualHost>
> 
> <VirtualHost *:80>
>    DocumentRoot /var/www/html/site3
>    ServerName site3.localhost
>    other stuff ....
> </VirtualHost>
> 
> Have you got your ServerNames set up properly in /etc/hosts or DNS?

All in hosts; my stuff is working now.  My last query
was really addressed to Michael Peterson, who indicated
that he omits ServerName.

Mike.