Configure Apache to use external proxy for internet connection

Posted by warpech on Server Fault See other posts from Server Fault or by warpech
Published on 2011-03-18T10:05:11Z Indexed on 2011/03/20 16:12 UTC
Read the original article Hit count: 220

Filed under:
|

In my application I am using following rewrite rule:

RewriteRule ^/ajax(.*) http://api.externalserver.com/$1 [P,QSA,L]

You know what it does.

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 11.22.11.22:8585 http://api.externalserver.com/login

How can I make Apache use the corporate proxy for external internet requests?

© Server Fault or respective owner

Related posts about apache

Related posts about proxy