【问题标题】:Apache Proxypass escaping # encodingApache Proxypass 转义 # 编码
【发布时间】:2020-11-03 08:22:24
【问题描述】:

我正在尝试在 Apache(4.33 版)ProxyPass.conf 文件中实现以下 proxypass:

ProxyPass /test-web/test.cbbotm balancer://test-cluster/test/testhelpers/testhtml/test.html#/testfunctionality

我的问题是“#”被编码为“%23”导致失败。

我尝试了下面给出的各种方法,但似乎没有任何效果:

  • 重写规则
  • ProxyPassMatch
  • 在 ProxyPass 中使用 nocanon

任何建议都会很有帮助。如果有任何其他替代方法也会很有帮助。

谢谢 桑杰

【问题讨论】:

    标签: apache redirect reverse-proxy mod-proxy proxypass


    【解决方案1】:

    我可以通过从 proxypass 中排除这个 url 并使用 apache 重定向功能来修复它。

    ProxyPass /test-web/test.cbbotm ! 重定向 /test-web/test.cbbotm /test-web/test/testhelpers/testhtml/test.html#/testfunctionality

    以某种方式重定向保留“#”并且不对其进行编码。

    还可以使用带有 [NE,R] 参数的 RewriteRule。

    【讨论】:

      猜你喜欢
      • 2013-11-26
      • 1970-01-01
      • 1970-01-01
      • 2015-10-15
      • 2018-02-12
      • 1970-01-01
      • 2015-11-22
      • 2012-01-30
      • 2012-10-06
      相关资源
      最近更新 更多