我有一个部署,其中 Apache 转发到在同一系统上运行的 Tomcat。我遇到了 Apache 正在剥离 Tomcat 返回的 html 中的注释的情况。这会导致以下行被删除,导致 js 在 IE 上失败:
"<!--if IE><script language="javascript" type="text/javascript" src="/scripts/excanvas.js"></script><!endif>"
我有 mod_rewrite、mod_proxyhtml,当然还有 proxy_ajp。我尝试添加“ProxyHTMLStripComments Off”,但这似乎没有帮助。
我错过了什么?