Using Apache 2.2, I'd like to access an external server (reachable through the Internet) from one of my internal servers. The URLs will be rewritten to change the host so I'll either use mod_rewrite or mod_proxy, not sure yet which one is better for the task.
The problem is that to access the Internet with HTTP, we must use a proxy with authentication.
As I'm probably not very clear, here is a small diagram:
----- --------- ----- clients ---> - A - ---> - proxy - ---> - B - ----- --------- -----
A is the internal server, B is the external server.
I've tried using ProxyRemote using this syntax:
ProxyRemote * http://proxy.mynetwork.com:8080
It seems to go trough the proxy correctly: when I enter an URL http://A/fu/bar, I get the error "HTTP/1.1 407 proxy authentication required". I just don't know how I can specify the credentials for the proxy.