Skip to content

Instantly share code, notes, and snippets.

@dhrrgn
Created January 27, 2014 15:10
Show Gist options
  • Save dhrrgn/8650077 to your computer and use it in GitHub Desktop.
Save dhrrgn/8650077 to your computer and use it in GitHub Desktop.
Nginx status endpoint.
server {
listen 80;
server_name localhost;
location /status {
access_log off;
default_type text/plain;
return 200 "alive";
}
}
@stefanbschneider
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment