【问题标题】:Apache/Varinish redirecting example.com/folder to example.com:8080/folder/Apache/Varinish 将 example.com/folder 重定向到 example.com:8080/folder/
【发布时间】:2018-06-14 08:58:03
【问题描述】:

我在设置的这个新 VPS 上遇到问题。我已经设置了 Apache/Varnish,但是当我尝试访问域上的文件夹时,例如 example.com/whatever,它正在重定向到 example.com:8080/whatever/,并且我得到一个不可用的页面。但是,当我最后访问 example.com/whatever/ 并带有尾随 / 时,一切正常。我对 Varnish 还是很陌生,所以任何故障排除帮助将不胜感激。

【问题讨论】:

    标签: apache varnish


    【解决方案1】:

    听起来您在 Apache 中有重写规则以在 URL 上附加缺少的斜杠,并且它使用 Apache 主机和端口作为 Location: 响应标头。要么将该逻辑移到 Varnish 中,要么将其修改为不使用 Apache 中的端口。

    【讨论】:

      猜你喜欢
      • 2014-04-03
      • 2013-09-19
      • 1970-01-01
      • 2016-06-26
      • 2018-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      相关资源
      最近更新 更多