Setup forward proxy in apache2
Proxy word is noramally used for forward proxy. It forwards requst to other server and pass downs the response to the client.
This post is not supposed to describe the differneace between forward and revsers proxy.
But if you want to find out exact differance you can refer this stackoverflow post.
To setup forward proxy on your apahce2. you have to install [ if you are on linux ] / enable [ if you are using windows ] modules
[ If I am includeing any extra please corrent me. But I had to eanble all this modules. ]
You have to make virtual host for proxy forward
< VirtualHost *: XX >
< Proxy * >
Require all granted
< /Proxy >
You can restrict forward proxy for the request from certain hosts only. Just have change required greatend
<VirtualHost *: xx >
// Allow certain host only to
// use forward proxy
// For other hosts it will block
<Proxy * >
Require xx . xxx . xxx . xxx granted