Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support X-Forwarded-For, and deploy to demo server #2

Open
tonyg opened this issue Aug 3, 2009 · 2 comments
Open

Support X-Forwarded-For, and deploy to demo server #2

tonyg opened this issue Aug 3, 2009 · 2 comments

Comments

@tonyg
Copy link
Owner

tonyg commented Aug 3, 2009

As per http://twitter.com/miyagawa/status/3099517925: "does reversehttp.net demo server always send requesting-client as 127.0.0.1? Seems like a bug with proxy and stuff?"

I need to check to see what's happening.

Thanks to @miyagawa for the report!

@tonyg
Copy link
Owner Author

tonyg commented Aug 3, 2009

Indeed, on www.reversehttp.net, it always reports 127.0.0.1 as the requesting client IP address. It does work properly when I run it locally, however. The reason is as @miyagawa suspected - I'm running a reverse-proxy on port 80 on the demo server that isn't bright enough to include an X-Forwarded-For header. Possible solutions: switch to a smarter proxy and read the X-Forwarded-For header; or move to running on port 80 directly.

@tonyg
Copy link
Owner Author

tonyg commented Aug 3, 2009

Note -- it seems clear that support for X-Forwarded-For on the reversehttp leg should be automatic, but what about the relayhttp leg? My instinct is to not have it automatically enabled there; see http://en.wikipedia.org/wiki/X-Forwarded-For

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant