nginx_upstream_check_module
nginx_upstream_check_module copied to clipboard
Adding body check not just HTTP status check
I see the folliowing errors when i use this code
/root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c: In function ‘ngx_http_upstream_check_add_timers’: /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1039:5: warning: implicit declaration of function ‘is_https_check’ [-Wimplicit-function-declaration] if(is_https_check(&peer[i])){ ^ /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1040:6: warning: implicit declaration of function ‘ngx_ssl_create’ [-Wimplicit-function-declaration] ngx_ssl_create(&ucscf->ssl, NGX_SSL_SSLv3 | NGX_SSL_TLSv1,0); ^ /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1040:27: error: ‘ngx_http_upstream_check_srv_conf_t’ has no member named ‘ssl’ ngx_ssl_create(&ucscf->ssl, NGX_SSL_SSLv3 | NGX_SSL_TLSv1,0); ^ /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1040:34: error: ‘NGX_SSL_SSLv3’ undeclared (first use in this function) ngx_ssl_create(&ucscf->ssl, NGX_SSL_SSLv3 | NGX_SSL_TLSv1,0); ^ /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1040:34: note: each undeclared identifier is reported only once for each function it appears in /root/nginx/nginx_upstream_check_module-abhi/ngx_http_upstream_check_module.c:1040:50: error: ‘NGX_SSL_TLSv1’ undeclared (first use in this function) ngx_ssl_create(&ucscf->ssl, NGX_SSL_SSLv3 | NGX_SSL_TLSv1,0);