I have an Apache web server running on my intranet.
I want all external HTTP/HTTPS requests from my Apache web app to use my company's intranet proxy.
Environment
- Linux v2.6.32-504.12.2.el6.x86_64
- Red Hat v4.4.7-9
- Apache v2.2.15
I have enabled the following modules in httpd.conf
proxy_module
proxy_connect_module
proxy_http_module
URLs
- Site is internal.company.com (http)
- Proxy is proxy.company.com:1234 (http)
- External resource is external.site.com (https)
Manually specifying the proxy on a curl
works as expected:
curl -x proxy.company.com:1234 -L external.site.com
None of these appear to work:
1.
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass external.site.com proxy.company.com:1234
ProxyPassReverse external.site.com proxy.company.com:1234
2.
ProxyRequests On
ProxyRemote external.site.com proxy.company.com:1234
NoProxy .company.com
3.
ProxyRequests On
ProxyRemote * proxy.company.com:1234
NoProxy .company.com
And I've tried various combinations of the above settings as well. The info in the Apache docs about Intranet Proxy hasn't been terribly helpful, either.
Really appreciate any help!