Forum Moderators: phranque

Message Too Old, No Replies

Connecting Apache to the 'net

         

j4mes

6:16 pm on Nov 30, 2004 (gmt 0)

10+ Year Member



I have a (home) server set up running Apache which I use for testing and so forth. It all works fine apart from one script (PHP) which is set up as a proxy. It can access resources within the network quite happily, but errors the moment you try to use it to browse anything external.

The reason for this (I'm pretty sure) is that Apache (or maybe PHP) does not know how to connect to the Internet (through my proxy) though it has no problem serving pages (and the machine can browse the Internet quite happily from any browser).

Basically, how/where do I configure Apache(/PHP) so that it knows how?

Thanks,

J.

Jazeker

8:29 pm on Nov 30, 2004 (gmt 0)

10+ Year Member



Note that your internet provider might be blocking this kind of traffic as well. They do not like home servers.

jdMorgan

12:30 am on Dec 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might want to post this question over in the PHP forum, along with the PHP 'function' you are trying to use to connect to the 'net. Apache itself doesn't 'connect out' unless you are using mod_proxy, and then you specify the URL or IP to connect to in a static manner - basically you map an 'internal' URL-path to an external canonical URL or IP address.

For stuff like libwww-perl, PHP library functions, etc., that can "pull in" data from the Web, I'd imagine you do need a separate configuration setting to use a proxy if that proxy doesn't listen to localhost or 127.0.0.1

Jim