nginx配置总结

开启debug日志

1. server里面增加error_log  /var/log/nginx/debug.log debug;
2. location里面增加不存在的测试后端proxy_pass http://172.17.0.3:8080;
3. nginx -s reload

image

访问nginx ip+端口

image

查看debug日志

image

posted on 2026-03-20 21:10  王景迁  阅读(11)  评论(0)    收藏  举报

导航