Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Apache Web server to use a proxy server

I want to configure Apache web server to use a proxy server, so that all the outbound requests go through this proxy server. Could you please help me how to do this? I tried with Proxifier, but it didn't help me much.

like image 850
Apps Avatar asked Jan 24 '13 03:01

Apps


2 Answers

If you need to proxy outbound requests, you can use ProxyRemote from mod_proxy http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote

ProxyRemote * http://ip.of.proxY.host:port

like image 162
Doon Avatar answered Oct 18 '22 04:10

Doon


If you're using Apache the simpler way is to define a global variable http_proxy. On RedHat like edit /etc/sysconfig/httpd and adjust these two lines to your environment:

export http_proxy="http://proxy:8080/" 
export https_proxy="http://proxy:8080/"
like image 24
Roberto Alcantara Avatar answered Oct 18 '22 03:10

Roberto Alcantara