gelnior / newebe

Distributed Social Network made with Python
newebe.org
Other
105 stars 19 forks source link

Use X-Forwarded-For Header #15

Closed robinbb closed 12 years ago

robinbb commented 12 years ago

I am using a reverse proxy to pass requests that arrive at a particular named server (on port 80) to a different port on the same machine. Newebe is therefore logging all requests as having a source IP of 127.0.0.1, despite the fact that the reverse proxy is adding the "X-Forwarded-For" header.

Newebe should pay attention to the "X-Forwarded-For" header. Then, the log will reveal the correct source IP for the requests.

gelnior commented 12 years ago

Looks solved, option is now enabled in Tornado application.