Unknown nginx health_check directive

I am new to nginx. I use -

health_check uri=/some/uri

but when 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 say what is wrong here.? I used apache2 to complete all attempts, but I have little knowledge about nginx.

+4
source share
1 answer

According to Nginx docs :

This directive is available as part of the nginx commercial subscription.

+7
source

Source: https://habr.com/ru/post/1588976/


All Articles