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
- mod_proxy.so
- mod_proxy_ajp.so
- mod_proxy_balancer.so
- mod_proxy_connect.so
- mod_proxy_http.so
- mod_slotmem_shm.so
- mod_ssl.so
[ 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 >
ProxyRequests On
ProxyVia On
< Proxy * >
Require all granted
< /Proxy >
</VirtualHost>
You can restrict forward proxy for the request from certain hosts only. Just have change required greatend
<VirtualHost *: xx >
ProxyRequests On
ProxyVia On
// Allow certain host only to
// use forward proxy
// For other hosts it will block
// Requests
<Proxy * >
Require xx . xxx . xxx . xxx granted
</Proxy >
</VirtualHost>
Comments
Post a Comment