ngix_http_stub_status_module


本文摘自PHP中文网,作者巴扎黑,侵删。

1.ngx_http_stub_status_module 是一个 Nginx 的内置 HTTP 模块,该模块可以提供 Nginx 的状态信息。默认情况下这个模块是不被编译进来的,所以在编译 Nginx 时要指定加载该模块--with-http_stub_status_module

2.首先检查nginx是否安装ngx_http_stub_status_module模块

如果没有安装,需要重新编译。

# nginx -V | grep http_stub

ngx_http_stub_status_module (static)

# nginx -v

Tengine version: Tengine/2.1.1 (nginx/1.6.2)

3,首先在nginxserver段配置对应的信息

server {

listen 80;

server_name xxx;

location /ngx_status 自定义模块名称

{

stub_status on; 开启状态访问

access_log off;

    #allow all; 可以设置需要那些主机访问

    #deny all;

}

}

4,重新加载nginx,访问测试

# service nginx reload

curl 127.0.0.1:80/ngx_status

Active connections: 135

server accepts handled requests request_time

阅读剩余部分

相关阅读 >>

你值得了解的certbot开启亚马逊ec2主机https(代码分享)

http与https的主要区别是什么

apache http server是什么

apache配置多个http端口的方法

为什么https比http安全

ngix_http_stub_status_module

http和www服务的详细介绍

http和www服务的详细介绍

docker容器内无法通过http访问外网

http协议相关介绍及深度理解

更多相关阅读请进入《module》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...