On Fri, Jan 13, 2012 at 4:13 PM, Clay Porter <clay.por...@gmail.com> wrote:
> Thanks for the info.  I will try what you suggested.
>
> I'm pretty new to all of this, so I hope you don't mind a n00b
> question.  What do you mean by a "defunct vhost"?  Could I trouble you
> for an example?
>
> Thanks again.
>
> Clay
>

He means a vhost is not used for serving the sites you want to serve,
and only serves when a request is received that doesn't match one of
your real vhosts, which Apache by default will serve from the first
applicable vhost listed in the configuration.

Eg if you have this configuration:

NameVirtualHost *:80

<VirtualHost *:80>
  ServerName foo
</VirtualHost>

<VirtualHost *:80>
  ServerName bar
</VirtualHost>

and a request comes in on port 80 with server name 'wibble', then none
of these vhosts match, and Apache will serve from the first listed
vhost, in this case the 'foo' vhost.

If the configuration was like this:

NameVirtualHost *:80

<VirtualHost *:80>
  DocumentRoot /var/empty
</VirtualHost>

<VirtualHost *:80>
  ServerName foo
</VirtualHost>

<VirtualHost *:80>
  ServerName bar
</VirtualHost>

then a request for the host 'wibble' would be served from the first
unnamed vhost. This helps make it clear that a request was correctly
routed to the right vhost, and didn't just get there because the vhost
was the first listed and hence default.

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to