Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [epf-dev] Cant see client IP addresses in EPF Wiki when using ProxyPass

Hi John,
http://epf.eclipse.org is not behind a proxy so this is different.

Can you try the following.

In the rb file app/controllers/login_controller.rb there is a line in the login method
@user.update_attributes({:http_user_agent => request.env['HTTP_USER_AGENT'], :ip_address => request.env['REMOTE_ADDR'] , :last_logon => Time.now, :logon_count => @user.logon_count + 1, :logon_using_cookie_count => @user.logon_using_cookie_count + 1})

Replace REMOTE_ADDR with HTTP_X_FORWARDED_FOR and then restart the app server.

This might help, I'm not sure I haven't tested this. Of course your proxy server shouldn't be an 'anonymous' proxy server, if that is the case there is no way to get the IP.

HTH,
Onno





On Wed, Mar 2, 2011 at 12:30 PM, John Allen <John.allen@xxxxxxxxxx> wrote:

In the EPF wiki "Manage->Users" screen we only see the IP address of the Apache Server that is sitting in front of the EPF wiki and passing through the client requests via ProxyPass. It was my understanding that the X-Forward HTTP headers should be honoured in the logging but it seems not. Does this issue arise in the Main eclipse EPF Wiki? If not can you tell me how you manage to get the real client IP addresses to appear?

Thanks,
John

Please consider the environment before printing this email.

This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.  The contents of this email may relate to dealings with other companies within the Detica Limited group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.


_______________________________________________
epf-dev mailing list
epf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/epf-dev



Back to the top