Created
April 2, 2011 05:23
-
-
Save felinx/899253 to your computer and use it in GitHub Desktop.
Get self.request.remote_ip when running tornado behind a reverse proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To get remote_ip, it should set xheaders=True when initializing HTTPServer | |
http_server = HTTPServer(Application(), xheaders=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's work!
Test gist comment.