Nginx - enable nginx status

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Доступная цена


Включаем nginx_status:

# vi /etc/nginx/vhosts/my_site.com
добавляем location {}:
location /nginx_status {
       stub_status on;
       access_log   off;
       allow 78.xx.xx.xx;
       deny all;
  }

где 78.xx.xx.xx - Ваш IP. Заходим по http://my_site.com/nginx_status
Пример статистики:

Active connections: 387 
server accepts handled requests
18295 18295 73460 
Reading: 0 Writing: 16 Waiting: 371