On Tue, Jul 13, 2010 at 1:34 PM, Tapas Mishra <mightydre...@gmail.com> wrote:
> I am having some websites and by default a website whose vhost
> configuration is first alphanumerically is being served.
> I do not want this to happen.
> i.e. when I am typing http://192.168.1.5/
> by default a website is being served
> instead I need is some thing here which shows me different directories
> as in those directories I have different websites which I later want
> to serve.
>

When using name based virtual hosting, if no VirtualHost container has
a ServerName that matches the requested Host header, then the first
vhost encountered in the conf file is used.

Commonly, people set up the first vhost as a 'failure' vhost, that
people only visit if they request a vhost that is not configured,
which can then be used to redirect people on to the right vhost or
display an appropriate error message.

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