User Tools

Site Tools


nginx_status

Nginx status

  1. Open file with your default nginx virtualhost
  2. Into “server” section add
    location /nginx-status {
            stub_status on;
            access_log off;
            allow 127.0.0.1;
            deny all;
    }
  3. Restart nginx
    /etc/init.d/nginx restart
  4. Edit file /etc/bijk/bijk-node-plugins.conf and change beginning with NGINX_STATUS_URL like this
    NGINX_STATUS_URL = http://127.0.0.1/nginx-status
  5. Restart Bijk daemon
    /etc/init.d/bijk-node restart

We assume nginx listen on standard http port 80 and on localhost (127.0.0.1).

If it's running on another port, please add port number in Bijk configuration and restart Bijk daemon.

If it's not running on 127.0.0.1, please change that IP for primary IP of your server in nginx and bijk configuration and restart daemons.

You can check your previous changes with

links http://127.0.0.1/nginx-status

or

lynx http://127.0.0.1/nginx-status
nginx_status.txt · Last modified: 2010/05/20 16:09 by vladimir.kruzik