为什么我的Apache反向代理不能在发送回客户端时转换锚HREF属性?

我有

# For blog LoadModule proxy_html_module libexec/mod_proxy_html.so LoadModule ssl_module libexec/mod_ssl.so LoadModule xml2enc_module libexec/mod_xml2enc.so SSLProxyEngine on ProxyRequests off ProxyPass /blog https://xxxx.wordpress.com ProxyPassReverse /blog https://xxxx.wordpress.com ProxyHTMLEnable On ProxyHTMLURLMap https://xxxx.wordpress.com /blog <Location /blog> ProxyPassReverse / ProxyHTMLEnable On ProxyHTMLURLMap / /blog RequestHeader unset Accept-Encoding #LogLevel proxy:debug </Location> 

遵循以下指南:

https://devcenter.heroku.com/articles/custom-php-settings#using-a-custom-application-level-apache-configuration

http://www.apachetutor.org/admin/reverseproxies

https://httpd.apache.org/docs/trunk/mod/mod_proxy.html

当我访问URL http://www.xxxx.com/blog/时,它不会替代锚链接https://xxxx.wordpress.com/2015/09/16/hello-world/ with / blog。

它在本地工作,但不在生产中。

以下是通过代理并出现在浏览器中的HTML示例:

 <h1 class="entry-title"> <a href="https://xxxx.wordpress.com/2015/09/16/hello-world/" rel="bookmark">Hello world!</a></h1> 

我还使用了一个不同的博客主机(HostGator),而不是Wordpress.com,但它仍然无法正常工作。 (这不是重要的。)

Apache 2.4.16,制作:2.4.10(?)

响应主体中的链接不能用代理引用来更新,除非目标主机中有一个function返回期望的URL,否则你需要通过附加的编码明确地pipe理响应主体中的链接。 更多细节..

如果在开发中的工作意味着有这样的configuration,你在产品缺less。