Nginx - enable nginx status

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Версия от 14:33, 22 декабря 2014; Admin iph (обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к:навигация, поиск

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


Включаем 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