当前位置: 首页 > news >正文

nginx配置总结

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