问下nginx转发哪里出现问题?
情况是这样的,我内网里面有台服务器,里面装了一个软件,监听8080端口,然后我就装了一个frp,frp配置如下
[web-soft]
type = http
local_ip = 127.0.0.1
local_port = 8080
custom_domains = test.com
然后我又一台公网服务器,我用test.com:8080 是能获取到软件的数据的。但是情况是我有另一个项目也想用这软件数据
然后我在另一项目的nginx配置了转发
location /soft{
proxy_pass test.com:8080;
}
但是我这样请求时候,就出现
<p>Sorry, the page you are looking for is currently unavailable.<br/>
Please try again later.</p>
<p>The server is powered by <a href="https://github.com/fatedier/frp">frp</a>.</p>
<p><em>Faithfully yours, frp.</em></p>
所以我想问下如何配置nginx,能正常转发请求到frp端口,还能正常返回数据?