# Configuración

<span style="font-weight: 400;">Depende de si se ha compilado manualmente NGINX o el paquete precompilado que se esté usando puede que esté instalado el módulo “ngx\_http\_stub\_status\_module” o no, para verificar si está o no se puede usar el siguiente comando:</span>

```
nginx -V | grep -o with-http_stub_status_module
with-http_stub_status_module

```

<span style="font-weight: 400;">En este ejemplo vemos que esta instalado asi que podemos utilizarlo, de no ser el caso debemos compilar NGINX añadiendo el módulo:</span>

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

```

<span style="font-weight: 600;">Configuración de status en NGINX</span>

<span style="font-weight: 600;"><span style="font-weight: 400;">Vamos a declarar status dentro del fichero nginx.conf que está situado en </span><span style="font-weight: 400;">/etc/nginx</span></span>

<span style="font-weight: 600;"><span style="font-weight: 400;"><span id="bkmrk--0" style="font-weight: normal;"><span style="font-size: 8pt; font-family: 'Courier New'; color: #111111; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; white-space: pre-wrap;"><span style="border-width: initial; border-style: none; display: inline-block; overflow: hidden; width: 624px; height: 100px;">![](https://lh3.googleusercontent.com/CXnEJOyTPCOv3GuYjn9l9qmwwGc0AGLqsyoBCxe-hLBc74WVPTqh6qKH32sqLTiwHeCXNWuPMBKOf97HR7M4kUzR0YV3rpU3zPlD1N81dCj1d_ywaLqGRfk9H-EejQ)</span></span></span></span></span>

<span style="font-weight: 600;"><span style="font-weight: 400;">Añadiremos /status a la derecha de location, tal como sale en la imagen.</span></span>