我有一个Plone站点和Apache2代理服务器,它有两个使用java脚本的网页。 Plone站点和Java脚本功能正确无法使用Apache 2代理服务器。 Plone在代理服务器后面的web Plone页面上运行正常。但是,JavaScript与Apache代理服务器无法正常工作。请参阅下面的Apache访问日志。我相信原因必须与Javascript尝试发布到错误的位置。如果您查看GET服务,我相信POST将从java脚本返回并发布到服务/服务。那么任何人都有正确的Apache重写来解决这个问题吗?以下是我一直在尝试的规则。
My host - - [24/Mar/2013:21:16:16 -0400] **"GET /services** HTTP/1.0" 200 19149 "http://rcms.xxxx.com/our-team" "Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"
184.56.129.45 - - [24/Mar/2013:21:16:17 -0400] "GET /portal_css/HedDex%20Tranquility%20Plone3%20Theme/resourceplone.app.jquerytools.overlays-cachekey8212.css HTTP/1.0" 200 2023 "http://rcms.xxxx.com/" "Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"
My Host - - [24/Mar/2013:21:16:18 -0400] "POST **/services/services/@@merged**Request/getMergedData HTTP/1.0" 200 16826 "http://rcms.xxxx.com/services" "Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"
规则:
RewriteRule ^/(.*)$
balancer://lbesa/siteX/rbt/VirtualHostBase/http/rcms.xxxx.com:80/siteX/rdt/VirtualHostRoot/$1 [L,P]
ProxyPassReverse /services/
balancer://lbesa/VirtualHostBase/http/rcms.xxxx.com:80/siteX/rdt/VirtualHostRoot/services/services/