...
Nginx stub status module
Make sure that the server process is configured with the stub status module. Use the command:
Code Block linenumbers true root@klappanas:~# nginx -V 2>&1 | grep -o with-http_stub_status_module with-http_stub_status_module
If stub status module is not installed, you can follow this guide for the installation: https://www.tecmint.com/enable-nginx-status-page/
Add a new server block configuration inside /etc/nginx/sites-enabled/default
Code Block title /etc/nginx/sites-enabled/default server { listen 8081; listen [::]:8081; server_name _; root /var/www/html; index index.html; location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; } }
restart nginx service
Code Block systemctl restart nginx
Now the Url 127.0.0.1:8081/nginx_status should be available
Code Block wget -qO - http://127.0.0.1:8081/nginx_status Active connections: 1 server accepts handled requests 1 1 1 Reading: 0 Writing: 1 Waiting: 0
Configure nginx_status
- manually
- via Bakery
...