【问题标题】:I can't seem to get mod_proxy_html working at all - no debug output, no errors我似乎根本无法让 mod_proxy_html 工作 - 没有调试输出,没有错误
【发布时间】:2011-03-29 14:06:59
【问题描述】:

我正在运行 apache 2.0.52,并且我已经编译了 mod_proxy_html 模块(版本 3.1),apache 启动正常,没有错误。唯一的问题是该模块似乎什么都不做 - 我什至没有在错误日志中得到任何调试输出,所以我有点难过,因为我什至没有任何日志可以指出为什么它的线索不工作。代理本身工作正常,但没有进行 url 修改。

这是我的 httpd.conf 文件中的 sn-p:

ProxyHTMLEnable On
ProxyHTMLLogVerbose On
ProxyHTMLExtended On
LogLevel Debug

ProxyPass /forms http://internal:7777/forms
ProxyPass /reports http://internal:7777/reports
ProxyPassReverse /forms http://internal:7777/forms
ProxyPassReverse /reports http://internal:7777/reports

ProxyHTMLURLMap http://internal:7777/reports /reports

【问题讨论】:

    标签: html apache proxy mod-proxy


    【解决方案1】:

    我还没有找到它不记录的原因,但丢失的魔法咒语是

    SetOutputFilter 代理-html

    我怀疑将 mod_filter 设置为通过 mod_proxy_html 传递所有传出内容

    【讨论】:

      【解决方案2】:

      这是正确的答案。

      ProxyHTMLCharsetOut *
      

      特殊标记 ProxyHTMLCharsetOut * 将使用 与输入相同的编码。

      若要与SetOutputFilter proxy-html 进行比较,请在以下页面上搜索并阅读讨论。

      参考。 https://httpd.apache.org/docs/2.4/mod/mod_proxy_html.html#proxyhtmlcharsetout

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-09-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-27
        • 2013-11-25
        相关资源
        最近更新 更多