On Sun, Feb 28, 2010 at 1:01 AM, LuKreme <krem...@kreme.com> 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-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>
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

Reply via email to