![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
孙艳强
物竞天择,适者生存。
展开
-
Nginx转发路径拼接规则
在nginx中配置proxy_pass时,如果是按照^~匹配路径时,要注意proxy_pass后的url最后的/,当加上了/,相当于是绝对根路径,则nginx不会把location中匹配的路径部分代理走;如果没有/,则会把匹配的路径部分也给代理走.1.当加上/配置如下,假设请求是http://58.249.55.68:8099/admin/having/test.do这转发原创 2017-09-20 19:57:36 · 11007 阅读 · 2 评论 -
nginx报403错误(13:Permission denied)
Centos7使用rpm包直接安装nginx,浏览器访问报403 is forbidden的错误.查看/var/log/nginx/error.log日志显示:2017/09/05 09:32:26 [crit] 2406#0: *1 connect() to 192.168.14.158:8010 failed (13: Permission denied) while connec原创 2017-09-05 17:32:35 · 2084 阅读 · 0 评论