0

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

这是我的 httpd.conf 文件中的片段:

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
4

2 回答 2

0

我仍然没有找到为什么它没有记录,但缺少的魔法咒语是

SetOutputFilter 代理-html

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

于 2010-08-19T12:39:53.320 回答
0

这是正确的答案。

ProxyHTMLCharsetOut *

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

要与 进行比较SetOutputFilter proxy-html,请在下一页上搜索它,然后阅读讨论。

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

于 2017-09-27T05:10:35.590 回答