未找到返回404的NGINX代理传递
为了测试NGINX proxy_pass,我创建了两个htmls:Index.html和SecondIndex.html 部署应用程序时,应用程序的url:指向Index.html。 我添加了一个代理过程以指向SecondIndex.html: 服务器{未找到返回404的NGINX代理传递,nginx,proxypass,Nginx,Proxypass,为了测试NGINX proxy_pass,我创建了两个htmls:Index.html和SecondIndex.html 部署应用程序时,应用程序的url:指向Index.html。 我添加了一个代理过程以指向SecondIndex.html: 服务器{ location /second/ { proxy_pass https://mynginx.mycloud/SecondIndex.html } } 如果我直接点击secondindex.html的url,
location /second/ {
proxy_pass https://mynginx.mycloud/SecondIndex.html
}
}
如果我直接点击secondindex.html的url,它将加载页面
但如果我使用代理传递命中:或者,它抛出404 Not found
这里的问题是什么