Requests through Apache show as from Localhost

Does anyone know of a recent change in the way Rails or Mongrel handles
headers?

After the following updates:

Rails updated to 1.2.5
Mongrel updated to 1.1

All log files show as the following no matter the host they come from:

Processing UserController#login (for 127.0.0.1 at 2007-11-08 12:38:24)
[GET]

The site runs through Apache 2.2 load balancer, and no configuration
changes have been made to Apache.

Chris

Changed line 105 of

/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.5/lib/action_controller/request.rb

from

  • ip =~ /^unknown$|^(10|172.(1[6-9]|2[0-9]|30|31)|192.168)./i
  • ip =~ /^unknown$|^(10|172.(1[6-9]|2[0-9]|30|31))./i

Chris W. wrote:

Does anyone know of a recent change in the way Rails or Mongrel handles
headers?

After the following updates:

Rails updated to 1.2.5
Mongrel updated to 1.1

All log files show as the following no matter the host they come from:

Processing UserController#login (for 127.0.0.1 at 2007-11-08 12:38:24)
[GET]

The site runs through Apache 2.2 load balancer, and no configuration
changes have been made to Apache.

Chris

I found similar problem when upgrading to Rails 1.2.6. Why did the
change below work for you? I tried it without success. For some reason
it only seems to be affecting one application, and the problem showed
up after the log was rotated.

On Nov 18, 10:24 am, Chris W. <ruby-forum-incom…@andreas-

This must be a bug in rails, right? Did you report it?

On Nov 18, 5:24 pm, Chris W. [email protected]