Nginx服务构建及访问状态统计
server { listen 80;server_namelocalhost;
charset utf-8;
location / {
root html;
indexindex.html index.htm;
}
location ~ /status { //访问位置为/status
stub_status on; //打开状态统计功能
access_log off; //关闭此位置的日志记录
} //在"server"这里插入的这4行的
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
}
}
页:
[1]