I'm trying to convert some static reverse ProxyPass rules into a rewrite with regex (since ProxyPass doesn't support much regex).
I'd like to convert URL requests for /myurl/somepath/anotherpath/* to be proxied to:
http://www.example.com/dirone/dirtwo/somepath-anotherpath/*
So I try:
RewriteRule ^/myurl/(\w+)/(\w+)/(.*)$ http://www.example.com/dirone/dirtwo/$1-$2/$3 [P]
When I try a URL, I don't get an error, I don't see anything in the apache logs except for a rewrite proxy pass to the proper back-end, but in the client, I get an error, and it's trying to connect to the back-end but can't:
Server not found
Firefox can't find the server at www.example.com.
The target URL on the destination host is definitely reachable via the proxy host (tested via wget). Am I screwing up something in the regex?