nginx - How to setup health check page in django -
i have webapp required authentication access page of it. elb work have setup health-check page elb elb discover django app.
this page should return http 200 , no auth required. how setup django/nginx world.
this better handled nginx, fact it's serving django app should make no difference.
you first need configure elb's health check ping specific url of instance, /elb-status
. can follow instructions here: http://docs.aws.amazon.com/elasticloadbalancing/latest/developerguide/elb-healthchecks.html#update-health-check-config
after that, need set nginx send http 200 status code. can add server
block in nginx.conf
:
location /elb-status { access_log off; return 200; }
see answer more details.
Comments
Post a Comment