Skip to content

Instantly share code, notes, and snippets.

@tachiba
Created August 3, 2012 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tachiba/3246469 to your computer and use it in GitHub Desktop.
Save tachiba/3246469 to your computer and use it in GitHub Desktop.
Elastic Load Balancer's health check on nginx
#
# The default server
#
server {
listen 80;
server_name _;
# ELB health check!
location ~ ^/health/(.+)$ {
proxy_pass http://$1_production/health;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment