[SOLVED] LocationMatch directive regex..

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

[SOLVED] LocationMatch directive regex..

Post 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>
Post Reply