Nginx — Prerequisites

Prerequisites for monitoring Nginx with HEAL.

1 min read Updated SS

Prerequisites to complete before adding this component in the HEAL Control Center.

  1. Navigate to /etc/nginx/conf.d path.Note: For Ubuntu and Debian OS, navigate to /etc/nginx/sites-enabled/default.
  2. Edit default.conf file as follows.
  3. You can see the following section in the file:

    location / {
        root ..............;
        index .............;
    }
    
  4. Add following section to the file after the above section:

    location /nginx_status {
        stub_status;
        allow all;   # only allow requests from localhost
        deny all;    # deny all other hosts
    }
    
  5. Execute the following command to confirm if the above changes are updated successfully:

    nginx -t
    
  6. After successfully executing step 5, execute the following command to reload Nginx to see the changes:

    nginx -s reload
    # or
    systemctl reload nginx
    

See also: Nginx (what HEAL monitors) · Setup & configuration guide