Configuring Forward Proxy in XAMPP Apache Server


Let us assume , you have Wireless Internet Connection in Your Laptop / Server (123.101.1.12) which is also connected with wired local area network with another system. Now you need Internet connection from Server to client, here the forward proxy concept plays the important role.

Scenario
Server Internet IP Address : 123.101.1.12
Server Local IP Address : 10.0.0.1
Client Local IP Address : 10.0.0.2

Necessary Software
  1. XAMPP  Package or Apache Server
After installing XAMPP in you server machine, open the httpd.conf file
#sudo su
#gedit /opt/lampp/etc/httpd.conf
  • Now Append the following lines
#Forward Proxy
ProxyRequests On
ProxyVia On

<Proxy *>
Order deny,allow
Deny from all
Allow from 10.0.0.2
</Proxy>
  • Restart the XAMPP
#/opt/lampp/lampp restart
  • Go to the client machine(10.0.0.2) . Open your web browser and set the proxy ip as 10.0.0.1 and port is 80, now you can able to browse the server wireless Internet connection in your client system

No comments:

Post a Comment