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 3:21 PM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
> On Tue, Jul 13, 2010 at 7:12 PM, Tom Evans <tevans.uk@xxxxxxxxxxxxxx> wrote:
>
>
>> 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.
> Can you give me an example or link for this.
>
> --
> Tapas
>

<VirtualHost *:80>
    ServerName default
    Redirect / http://proper-site.com/
</VirtualHost>

<VirtualHost *:80>
    ServerName www.foo.com
    ...
</VirtualHost>

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