Re: how to disable default site from being served in apache2

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

 



On Tue, Jul 13, 2010 at 1:34 PM, Tapas Mishra <mightydreams@xxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux