Created
May 4, 2016 05:07
-
-
Save undownding/e3d1c7dad093d22be507283917e6e98f to your computer and use it in GitHub Desktop.
Use nginx to get ip
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
server { | |
server_name ip.lustfield.net; | |
location = / { | |
default_type text/plain; | |
echo $remote_addr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment