August 2017
Intermediate to advanced
278 pages
8h 53m
English
server {
listen 8188;
status_zone status-page;
allow 192.168.0.0/24;
deny all;
root /usr/share/nginx/html;
location = /status.html { }
location = / {
return 301 /status.html;
}
location /status {
status;
status_format json;
}
}
This can be placed in the /etc/nginx/conf.d/ directory as a separate file (for example, status.conf), to keep it clean and simple.
Read now
Unlock full access