[us...@httpd] Re: Cacthing hosts

2010-02-28 Thread LuKreme
On 28-Feb-10 03:13, Nilesh Govindarajan wrote: On Sun, Feb 28, 2010 at 1:01 AM, LuKreme wrote: On 27-Feb-2010, at 10:17, Nilesh Govindarajan wrote: What if I want all IPs ? 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

Re: [us...@httpd] Re: Cacthing hosts

2010-02-28 Thread Eric Covener
On Sun, Feb 28, 2010 at 5:13 AM, Nilesh Govindarajan wrote: > 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 ? No

Re: [us...@httpd] Re: Cacthing hosts

2010-02-28 Thread Nilesh Govindarajan
On Sun, Feb 28, 2010 at 1:01 AM, LuKreme 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. > > W

[us...@httpd] Re: Cacthing hosts

2010-02-27 Thread LuKreme
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

Re: [us...@httpd] Re: Cacthing hosts

2010-02-27 Thread Nilesh Govindarajan
On Sat, Feb 27, 2010 at 9:31 PM, LuKreme wrote: > On 27-Feb-2010, at 04:20, Nilesh Govindarajan wrote: > > > > This configuration has to be placed after all good vhosts; Otherwise all > > hosts give Error 400. Why ? > > Because all hosts match. > > This is not the best way to do it, wildcards are

[us...@httpd] Re: Cacthing hosts

2010-02-27 Thread LuKreme
On 27-Feb-2010, at 04:20, Nilesh Govindarajan wrote: > > This configuration has to be placed after all good vhosts; Otherwise all > hosts give Error 400. Why ? Because all hosts match. This is not the best way to do it, wildcards are discouraged. As Frank said: On 26-Feb-2010, at 10:22, Frank