View Single Post
  #1  
Old 15th December 2009, 22:39
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 108
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Default Dumb Virtualhost Question

Hi All,

I have a really newbie question regarding the Apache Virtualhost directive in the /etc/apache2/sites-enabled files.

I'm running ISPConfig3. One of my sites http://www.cocoanet.us generates the following VirtualHost directive:

Code:
<VirtualHost *:80>
      DocumentRoot /var/www/cocoanet.us/web

    ServerName cocoanet.us
    ServerAlias *.cocoanet.us
    ServerAlias dantepasquale.cocoanet.us
    ServerAdmin webmaster@cocoanet.us
    ......
So, as I understand the documentation from Apache, this directive instructs Apache to listen on all IP addresses on port 80.

So, my dumb question is: My other sites have the same thing, so how do we actually get to the correct Virtualhost since we don't specify the IP???

Thanks for answering this dumb question
Reply With Quote
Sponsored Links