Health_check Windows

I am trying to use the health_check module on Windows nginx/1…7.6

    location / {
        proxy_set_header Host $http_host;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass       http://backend;
        health_check;
    }

and I’m getting the following error in the log file

unknown directive “health_check”

Is this module not included in the Windows build?

Posted at Nginx Forum:

On Friday 10 October 2014 10:51:01 carcus88 wrote:

        proxy_pass       http://backend;
        health_check;
    }

and I’m getting the following error in the log file

unknown directive “health_check”

Is this module not included in the Windows build?

[…]

This module is a part of the commercial version of nginx.
See the notice at the end of description:
http://nginx.org/r/health_check

wbr, Valentin V. Bartenev

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#health_check

Alternative suggestions are welcome :slight_smile: but I’m sure this can be tackled
with
Lua.

Posted at Nginx Forum: