问题
I have a Plone site behind and Apache2 Proxy server that has two web pages that uses a java script. That Plone site and Java Script functions correct with out that Apache 2 Proxy Server. Plone does function correctly with it's web Plone pages behind the proxy server. However the JavaScript is not working correctly with the Apache proxy servers. Please see below Apache access logs. I believe the reason has to with the Javascript try to post to the wrong location. If you look at the GET services and I believe the POST is coming back from the java script and it's posting to services/services. So would anybody have and idea for correct Apache rewrite to correct this problem? Posted below are the rules I have been trying.
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"
Rules:
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/
来源:https://stackoverflow.com/questions/15617854/javascript-with-apache-2-proxy-rewrite-rules-and-plone