So i proxied a page (on server abc so that xyz would be the proxy):
ProxyPass /activation http://xyz.com:88/activation
ProxyPassReverse /activation http://xyz.com:88/activation
So when you load xyz page on server abc, abc is displayed in address bar.
Problem is all the css, javascript, and images need for page are not proxied, so browser shows this:
GET http://abc.com/javascripts/jquery_ujs.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/addclear.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/jquery.truncate.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/jquery.min.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/jquery-ui.min.js?1330619664 404 (Not Found)
GET http://www.staticvoid.info/toggleEdit/toggleEdit.css 404 (Not Found)
GET http://abc.com/javascripts/jquery.dateFormat-1.0.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/jquery.tablesorter.min.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/rails.validations.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/rails.validations.custom.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/application/initializers.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/jquery.multiselect.js?1330619664 404 (Not Found)
GET http://abc.com/javascripts/application/toolbox.events.js?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/formtastic.css?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/formtastic_changes.css?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/jquery.multiselect.css?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/jquery.tooltip.css?1330619664 404 (Not Found)
GET http://abc.com/themes/abc/stylesheets/abc.css 404 (Not Found)
GET http://abc.com/themes/abc/stylesheets/reset.css 404 (Not Found)
GET http://abc.com/javascripts/application.js?1330619664 404 (Not Found)
GET http://abc.com/themes/abc/stylesheets/login.css 404 (Not Found)
GET http://abc.com/stylesheets/blueprint/screen.css?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/application.css?1330619664 404 (Not Found)
GET http://abc.com/themes/abc/stylesheets/style.css 404 (Not Found)
GET http://abc.com/themes/abc/images/callnow.jpg 404 (Not Found)
GET http://abc.com/themes/abc/images/eagletrackgps.jpg 404 (Not Found)
GET http://abc.com/themes/abc/images/madeinamerica.jpg 404 (Not Found)
GET http://abc.com/images/btn-abc.jpg?1330619664 404 (Not Found)
GET http://abc.com/images/btn-abc.jpg?1330619664 404 (Not Found)
GET http://abc.com/images/btn-abc.jpg?1330619664 404 (Not Found)
GET http://abc.com/images/btn-abc.jpg?1330619664 404 (Not Found)
GET http://abc.com/stylesheets/blueprint/print.css?1330619664 404 (Not Found)
So I tried ProxyPassMatch directive:
ProxyPassMatch /^(javascripts|stylesheets)$/^(.*)$ http://xyz.com:88/$1/$2
But it didnt work. That above directive should have removed this error, for example:
GET http://abc.com/javascripts/jquery_ujs.js?1330619664 404 (Not Found)
After all, that above request matches the url pattern match.
thanks for response
UPDATE:: Got it working when I fixed the regex:
ProxyPassMatch ^/(javascripts|stylesheets)/(.*)$ http://abc.com:88/$1/$2
With KM01 recommendation to use proxypassmatch, I resolved this issue: