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:

<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
Old 16th December 2009, 08:43
topdog topdog is offline
Senior Member
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts

name based virtual hosting uses the Host header that the client sides through via the request headers.

The server chooses which site to serve based on the servername and, or the serveralias
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote


apache directives, ispconfig3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig RC1 released till General 92 22nd February 2010 10:52
Possibly Dumb Question about a Hostname dwtj01 Installation/Configuration 3 4th April 2009 06:05
Issues with MyDNS and ISPConfig koltz General 36 3rd March 2009 16:40
ISPConfig3 -- Dumb Question - DNS record setup grandpagenocide General 6 27th April 2008 17:13
PHP doesn't work! JimmiJames Server Operation 1 30th January 2007 13:30

All times are GMT +2. The time now is 22:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.