Re: [Mongrel] help! problem with mongrel, request.remote_ip and lighttpd

2007-11-28 Thread Wayne E. Seguin
On Nov 28, 2007 12:38 AM, Rajiv Sankranti <[EMAIL PROTECTED]> wrote: > Wayne, > > Thanks for the response. I found that lighttpd forwards the remote address > in > HTTP_X_FORWARDED_FOR. > > I was able access it by using > request.env['HTTP_X_FORWARDED_FOR'] in the rails application. > Raj, Awesom

Re: [Mongrel] help! problem with mongrel, request.remote_ip and lighttpd

2007-11-27 Thread Rajiv Sankranti
Wayne, Thanks for the response. I found that lighttpd forwards the remote address in HTTP_X_FORWARDED_FOR. I was able access it by using request.env['HTTP_X_FORWARDED_FOR'] in the rails application. On November 27, 2007 09:35:04 pm Wayne E. Seguin wrote: > On Nov 23, 2007 5:22 PM, Rajiv Sankr

Re: [Mongrel] help! problem with mongrel, request.remote_ip and lighttpd

2007-11-27 Thread Wayne E. Seguin
On Nov 23, 2007 5:22 PM, Rajiv Sankranti <[EMAIL PROTECTED]> wrote: > I have an existing rails application on lighttpd and I am trrying to > upgrade > to mongrel for the enhanced scalability it offers. > > I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5 > > Everything is wo

[Mongrel] help! problem with mongrel, request.remote_ip and lighttpd

2007-11-23 Thread Rajiv Sankranti
I have an existing rails application on lighttpd and I am trrying to upgrade to mongrel for the enhanced scalability it offers. I am running mongrel 1.1.1, rails 1.2.5, lighttpd 1.4.13 and ruby 1.8.5 Everything is working great except request.remote_ip returns 127.0.0.1 or 192.168.0.102 (the in