In my application I am using following rewrite rule:
RewriteRule ^/ajax(.*) http://api.externalserver.com/$1 [P,QSA,L]
Now the problem is that my corporate network requires me to use HTTP proxy for external internet connections.
To ilustrate, this doesn't work:
curl -v http://api.externalserver.com/login
But this works:
curl -v -x 18.104.22.168:8585 http://api.externalserver.com/login
How can I make Apache use the corporate proxy for external internet requests?