Depending on whether you have manually compiled NGINX or the precompiled package you are using, the module "ngx_http_stub_status_module" may or may not be installed, to check if it is or not you can use the following command:

nginx -V | grep -o with-http_stub_status_module

In this example we see that it is installed so we can use it, otherwise we must compile NGINX by adding the module:

./configure \
  --prefix=/opt/nginx \
 --sbin-path=/opt/nginx/sbin \
 --conf-path=/opt/nginx/nginx.conf \
 --pid-path=/opt/nginx/run/ \
 --with-http_ssl_module \
 --with-http_gzip_static_module \

Status configuration in NGINX

Let's declare status in the nginx.conf file located in /etc/nginx.


Add /status to the right of location, as shown in the image.

Revision #1
Created 18 May 2021 09:24:17 by alejandro.sanchez
Updated 20 May 2021 08:26:08 by alejandro.sanchez