Created
August 3, 2012 10:20
-
-
Save tachiba/3246469 to your computer and use it in GitHub Desktop.
Elastic Load Balancer's health check on nginx
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
# | |
# 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