Created
January 27, 2014 15:10
-
-
Save dhrrgn/8650077 to your computer and use it in GitHub Desktop.
Nginx status endpoint.
This file contains 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 { | |
listen 80; | |
server_name localhost; | |
location /status { | |
access_log off; | |
default_type text/plain; | |
return 200 "alive"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get
conflicting server name "" on 0.0.0.0:80, ignored nginx: [warn] conflicting server name "" on 0.0.0.0:80, ignored
when I try this.