Re: Re: NameVirtualHost and CGI Problems

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



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?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[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