【问题标题】:NGINX adds a domain name in URI - leads to 404 Not FoundNGINX 在 URI 中添加域名 - 导致 404 Not Found
【发布时间】:2021-12-03 01:38:00
【问题描述】:

登录网址 - https://domain1.com 登录后的初始 URL - https://domain1.com/test 单击另一个页面 - https://domain1.com/newpage 单击返回初始页面 - https://domain1.com/domain1.com/test - 失败

我只是根据 IP 和端口对上游服务器进行 proxy_pass 以获取根位置 /。除上述问题外,一切正常。尝试检查特定的 URI(/domain1.com/test) 以重写为https://domain1.com/test 的位置 - 但不起作用

【问题讨论】:

    标签: nginx


    【解决方案1】:

    在 URI "/domain1.com/test" 的位置块内 - 我们修剪了域名并使用了重定向选项。现在可以了。

    【讨论】:

      猜你喜欢
      • 2019-12-10
      • 1970-01-01
      • 2014-08-01
      • 2021-07-18
      • 1970-01-01
      • 2021-12-27
      • 1970-01-01
      • 2022-08-02
      • 1970-01-01
      相关资源
      最近更新 更多