Nginx — Prerequisites
Prerequisites for monitoring Nginx with HEAL.
Prerequisites to complete before adding this component in the HEAL Control Center.
- Navigate to
/etc/nginx/conf.dpath.Note: For Ubuntu and Debian OS, navigate to/etc/nginx/sites-enabled/default. - Edit
default.conffile as follows. -
You can see the following section in the file:
location / { root ..............; index .............; } -
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 } -
Execute the following command to confirm if the above changes are updated successfully:
nginx -t -
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