Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx unknown directive health_check

Tags:

nginx

I am new to nginx. I am using -

health_check uri=/some/uri

but on running the test with this command -

 sudo /usr/sbin/nginx -t -c /etc/nginx/nginx.conf

I get the following error -

nginx: [emerg] unknown directive "health_check" in /etc/nginx/sites-enabled/abc.conf:121

Can someone tell what is wrong here..? I have used apache2 to do all jing-bang but I do not have much knowledge about nginx..

like image 313
abipc Avatar asked May 20 '15 10:05

abipc


1 Answers

According to Nginx docs :

This directive is available as part of nginx commercial subscription.

like image 199
Alexander Avatar answered Sep 18 '22 12:09

Alexander