linux - 新手-----nginx怎么配置请求转发?
本文介绍了linux - 新手-----nginx怎么配置请求转发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
error.log
2017/04/30 10:06:56 [error] 7822#0: *1 open() "/data/www/articles" failed (2: No such file or directory), client: 183.236.0.94, server: 118.89.60.119, request: "GET /articles HTTP/1.1", host: "118.89.60.119"
这个问题已被关闭,原因:问题已解决 - 问题已解决,且对他人无借鉴意义
解决方案
location /api/ {
proxy_pass http://ip:port
}
这篇关于linux - 新手-----nginx怎么配置请求转发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文