nginx挂升级提示页
在目标location加入自定义403页面实现:
error_page 403 /inner.html;
allow 10.0.0.0/24;
deny all;
location = /inner.html {
root /data/nginx/html/inner_html;
allow all;
}
在目标location加入自定义403页面实现:
error_page 403 /inner.html;
allow 10.0.0.0/24;
deny all;
location = /inner.html {
root /data/nginx/html/inner_html;
allow all;
}
location /nginx_status {
stub_status on;
access_lg off;
}
nginx查看活跃连接数