Forum Moderators: phranque

Message Too Old, No Replies

How to make apache use proxy to connect to internet

         

ayush1988

4:49 am on Nov 18, 2008 (gmt 0)

10+ Year Member



In my college we use a proxy address to connect to internet. I also need that my apache web server also access internet through these proxy settings.

Please tell me how to change these settings for apache.
I am using xampp 1.6.7 for windows.

jdMorgan

10:34 pm on Nov 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache doesn't connect to the internet. Rather, the internet connects to Apache. This is part of the definition of the terms "client" and "server."

So you will need to talk to the administrators of this proxy (or the college's netwoork) and ask that they assign you an "outside of the college local-area-network" IP address (in other words, ask them to give you one of their wide-area network or WAN addresses) and forward requests for that particular IP address to your computer on port 80.

The reason you cannot do this without their cooperation has to do with the fact that LAN IP addresses are not routable outside the local subnet; There would be no way for someone outside your college's local network to connect to your server unless you have a WAN IP address, and that address is forwarded to your LAN IP addresses.

An alternative would be to sign up with a broadband internet service provider independent of the college. But you will need to find one that will give you a fixed (static) IP address, and that will allow you to run a server on their network; Many will not, due to network traffic engineering considerations.

Jim