# nano /etc/nginx/sites-available/default
location /server-status {
allow 127.0.0.1;
allow 192.168.200.60;
deny all;
stub_status on;
}
location /status {
access_log off;
allow 127.0.0.1;
allow 192.168.200.60;
deny all;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9095;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# nano /etc/php5/php-fpm/www.conf
pm.status_path = /status
location /server-status {
allow 127.0.0.1;
allow 192.168.200.60;
deny all;
stub_status on;
}
location /status {
access_log off;
allow 127.0.0.1;
allow 192.168.200.60;
deny all;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9095;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# nano /etc/php5/php-fpm/www.conf
pm.status_path = /status
Комментариев нет :
Отправить комментарий