作者:建铭琼伶俊涵 | 来源:互联网 | 2013-08-08 09:57
Nginx配置模块需要我们不断的学习,在学习中我们会遇到不少的问题,下面我们就详细的看看有关问题的解决方案,希望大家从中能够找到自己想要的。
Nginx编译时允许http_stub_status_module
然后在 nginx.conf 中 添加如下(粗体字部分)
-
server {
-
listen 80;
-
server_name www.xok.la;
-
location / {
-
root /web/xok.la/;
-
index index.html index.htm;
-
}
-
location /NginxStatus {
-
stub_status on;
-
access_log off;
-
}
-
}
killall -s HUP nginx (令Nginx配置生效)然后就通过 http://www.xok.la/NginxStatus 来访问到Nginx的运行状态页面。以上就是对Nginx配置模块的详细介绍,希望大家有所收获。