nginx_upstream_check_module icon indicating copy to clipboard operation
nginx_upstream_check_module copied to clipboard

"check" directive is not allowed here

Open jiekexinduo opened this issue 7 years ago • 3 comments

I compliled nginx like this: ./configure --prefix=/usr/local/nginx --with-stream --add-module= /usr/local/src/nginxcheck/nginx_upstream_check_module-master/
and my nginx.conf like this,here i just show the error place: upstream gprsgroup { server 192.168.50.90:9876 ; server 192.168.50.94:9527 ; check interval=3000 rise=2 fall=5 type=tcp timeout=1000; }

in an additon, I used it to check tcp server. I change stream to http. then nginx can reload the config successfully. Can the nginx_upstream_check_module surpport the stream?

jiekexinduo avatar May 26 '17 06:05 jiekexinduo

I got the same error.

ngocketit avatar Oct 31 '17 21:10 ngocketit

This module seems not to support stream. Tried out https://github.com/lusis/ngx_stream_upstream_check_module but not work either.

ngocketit avatar Nov 01 '17 07:11 ngocketit

same error

nginx version: nginx/1.14.0 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) configure arguments: --prefix=/opt/nginx --with-stream --add-module=/root/nginx-1.14.0/nginx_upstream_check_module-master

yulongsun007 avatar Jul 23 '18 14:07 yulongsun007