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;
- }
- }
|