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 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 working great except request.remote_ip returns 127.0.0.1 or > > 192.168.0.102 (the internal network address of the server running > > lighty). > > > > I've seen some older posts about this problem and it appears lighttpd is > > the > > culprit. Will pound solve this problem? > > > > Is there a way to get this working with lighttpd or do I need to use > > another > > webserver? > > > > Please help! > > > > Thanks, > > Raj. > > Raj, > > Lighttpd would be the culprit on that yes, I don't use it personally so > .... > > anyone else know how to pass the domain through when using lighttpd? > > ~Wayne -- Rajiv Sankranti FleetEyes Tel: 604 512 9629 Fax: 604 357 1175 1102-5051 Lougheed Hwy, Burnaby, BC V5B 4T5 www.fleeteyes.com [EMAIL PROTECTED] _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users