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/
<Directory /var/www/secure443>
Options Indexes FollowSymLinks
RewriteEngine on
# 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]
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Many thanks for listening and sorry if it's not the clearest of explanations...
Pete