27 October, 2021

Plesk

liton

402 views


add a Configfile, like nginx-status.conf, to /etc/nginx/conf.d

Add this to the Conf File: 

Code:
server {
    listen 127.0.0.1:7777 ## change the port to what you want;
    location /nginx_status {
    stub_status on;
    allow yourHomeIPv4;
    allow yourHomeIPv6;
    deny all;
        }
    }


If you want Access from Outside change the 127.0.0.1 to your ServerIP. "yourHomeIP*" is the IP wich have Access to the Status Site

 

source:
https://talk.plesk.com/threads/enable-nginx-stub-status-module.341838/