Hi guys, be really great if someone could help me with a small problem, my environment is like this:
Internet facing Apache server running mod_proxy and mod_balancer and mod_security that forwards requests to a number of other servers serving static content, SAP Netweaver and JBOSS applications.
My problem lies my SSL virtual host that servers out a JBOSS application and SAP (Netweaver) application, to acheive this I use a mixure of mod_proxy, mod_balancer and rewrites. The JBOSS application get's proxied off fine to another server that runs mod_jk whilst I use mod_rewrites to forward the SAP requests, I just use ProxyPass /sap ! to tell Apache not to send the sap requests to the mod_jk and JBOSS server. Everything works well except for one small problem in that when the SAP application tried to open a PDF inframe the ProxyPass /sap ! is seemingly ignored! Instead of the PDF opening it shows the JBOSS application.
The PDF rewrite works perfectly when the JBOSS proxy is commented out, one solution is to mount the JBOSS application somewhere other than the root /, e.g. ProxyPass /myjbossapp but I would prefer not to if possible
The PDF URL that seemingly get's blocked by mod_proxy goes something like this: http://www.myserver.com/sap(RwRERWdferefds==)/bc/......... It's almost like the Proxy exclusion code "ProxyPass /sap !" can't handle brackets.
Here's my Virtual Host:
# Proxying for JBOSS
# Do not pass SAP through JBOSS Proxy
ProxyPass /sap !
ProxyPass / balancer://lbcluster1/ stickysession=JSESSIONID|jsessionid nofailover=On
ProxyPassReverse / balancer://lbcluster1/
Options Indexes FollowSymLinks
# SAP html
RewriteRule ^sap(/.*)?$ http://192.168.101.13:10600/$0 [P,L]
# SAP PDF
RewriteRule ^sap\(.+$ http://192.168.101.13:10600/$0 [P,L]
Allow from all
Many thanks for listening and sorry if it's not the clearest of explanations...