This has been working well but the list of proxied URL's is becoming quite unwieldy, so in a quest to simplify things, I'm attempting to do the following:
RewriteRule ^(.*) ${api_rewrite:$1} [P]
The rewrite works perfectly, but the problem is that when client applications/developers download the wsdl the schema (amongst other things) location points to the internal host. I have been getting around this by using the filters above, but I would like to simplify things even further if possible.
The documentaion for mod_extfilters states:
" cmd=cmdline <stuff>
In addition to the standard CGI environment
variables, DOCUMENT_URI, DOCUMENT_PATH_INFO, and
QUERY_STRING_UNESCAPED will also be set for the program."
Am I correct in thinking that something like this will work, or am I interpreting the documentation incorrectly (entirely possible, I'm not that smart):
ExtFilterDefine url1 cmd="/bin/sed s|
http://z2esb.*:9001/internal/url|http://%{HTTP_HOST}/external/url|g"
Thanks for your time, hope it all makes sense.
Nathan.