Re: Re: Cacthing hosts

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

 



On Sun, Feb 28, 2010 at 1:01 AM, LuKreme <kremels@xxxxxxxxx> wrote:
On 27-Feb-2010, at 10:17, Nilesh Govindarajan wrote:
>
> What if I want all IPs ?

Your not understanding the function of the first VirtualHost. It is special as it is the default for anything that doesn't match another VirtualHost.

What I posted will do what you want. Request to www.example.com will go to the example.com dir, www.example.net will go to the example.net dir, *everything*else* that reaches your server will go to the 400 error VirtualHost.

And I do mean *everything*

--
'I think, if you want thousands, you've got to fight for one.' --Small Gods


---------------------------------------------------------------------
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


You posted which will work for a single IP i.e. 12.34.56.789

But what if I have three or four IP addresses on the same Apache server ?

Your config will handle only that particular IP.

I think a solution is ServerAlias ?

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com


[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