Page 1 of 1

[SOLVED] LocationMatch directive regex..

Posted: Wed Jul 25, 2007 4:11 am
by Jenk
Hello,

I'm using apache as a proxy, and am trying to proxy every on the basepath, unless it is '/tinymce'
So the logical (I thought) process would be to use the LocationMatch directive as per something like:

Code: Select all

<LocationMatch /(?!tinymce)*>
    ProxyPass http://127.0.0.1:9090/seaside/
    ProxyPassReverse http://127.0.0.1:9090/seaside/
</LocationMatch>
However, it does not match the base url (or any url for that matter..) yet Regex Coach is telling me that pattern matches anything but "/tinymce"
Any suggestions?

TIA!

EDIT:

Now working with:

Code: Select all

<Location /tinymce>
  ProxyPass !
</Location>
<Location />
  ProxyPass http://127.0.0.1:9090/seaside/
    ProxyPassReverse http://127.0.0.1:9090/seaside/
</Location>