Welcome! Log In Create A New Profile

Advanced

Ngnix 1.4.1 with upstream health check module

Posted by ganpya2003 
Ngnix 1.4.1 with upstream health check module
May 28, 2013 02:39AM
Hi All

Need help to install or configure upstream health check module with nginx version 1.4.1
I have installed the nginx 1.4.1 version from ngnix repo using yum. below is the output of nginx -V

nginx version: nginx/1.4.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'

how do i enable health check module in nginx version 1.4.1 or is there any rpm base module installation or source code compilation..please give me reference url

Note - Already installed nginx using yum or its already compiled in this version.

Nginx Vhost Configuration
###########
upstream ipublish.com {
ip_hash;
server 127.0.0.1:3000 ;
server 127.0.0.1:3001 ;
server 127.0.0.1:3002 ;
server 127.0.0.1:3003 ;
healthcheck_enabled;
healthcheck_delay 5000;
healthcheck_timeout 1500;
healthcheck_failcount 1;
healthcheck_send "GET /PingAction.do HTTP/1.0" 'Host: ivis0';
}
server {
listen 80;
server_name ipublish-dev.india.com;
access_log /var/log/nginx/ipublish-dev.india.com-access.log;
error_log /var/log/nginx/ipublish-dev.india.com-error.log;

# pass the request to the node.js server with the correct headers and much more can be added, see nginx config options
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Accept "";
proxy_set_header Connection "";
#proxy_cache my-cache;
#proxy_cache_valid 200 301 302 4h;
#proxy_cache_valid 404 1m;
proxy_pass http://ipublish.com/;
}
}
####################### End of vhost confi

Ngnix syntax error

nginx: [emerg] unknown directive "healthcheck_enabled" in /etc/nginx/conf.d/ipublish.conf:8
nginx: configuration file /etc/nginx/nginx.conf test failed
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready