I have an internal server that needs to rewrite inbound requests to another internal box, for stupid reasons, both machines have basic auth enabled on them. To get around the two levels of auth, and because these are only internal servers, I thought that I could do somethign like this:
RewriteCond %{REQUEST_URI} /api/service
RewriteRule /api/service/(.*) http://uname:pword@actualservice.uri.com/$1 [L,P]
My expectation, is that uname:pword will get carried along the the next server when this rewrite gets applied.
I think that the 'P' flag is causing this NOT to happen, but I require this to be a proxied request, since the browser from which the request initiates will not respond favorably to a response from a different uri than the request went to.
Thanks