Click to See Complete Forum and Search --> : perl proxy error: Could not connect to remote machine: Connection refused


Thanatos
11-30-2002, 05:29 PM
502 error...
Quick details:

Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /perl/mod.pl.

Reason: Could not connect to remote machine: Connection refused



--------------------------------------------------------------------------------

Apache-AdvancedExtranetServer/1.3.26 Server at www.theted.org Port 80

I am running php for the main site, but I like using perl....php works fine, and runs out of the document root. Whenever I try to execute perl, I get the above message, even though the code is in the perl root. perl is installed and runs locally... I'm not running any proxy servers that I know of...I checked my httpd.conf file, and it looked 'right'...what am I missing??
I already have the script directory aliased in my conf file...
ARGH!!! is there some security setting I need to turn on?

Thanatos
12-01-2002, 05:50 PM
just a bump...

Thanatos
12-06-2002, 01:36 PM
I fixed it. Apparently, unbidden, perl proxies it's output to 8200. Anyone know why it would do that?? I want it going to 80..

Thanatos
12-06-2002, 02:31 PM
Okay, this ocurred because I was running apache and apache_mod_perl at the same time--the latter is a full-fledged apache server with built in perl supprt....since it is another apache server, it used its own port, 8200. I didn't want that, so I uninstalled mod_perl entirely...I still can't seem to get the native perl to operate with my server. when I added

<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

to my httpd.conf file, it gave me "Invalid command 'PerlHandler', perhaps mis-spelled or defined by a module not included in the server configuration. This should be easy to fix by putting the appropriate module in the mods directory, or if it is there, putting a pointer to it in my httpd.conf file...stay tuned....

Thanatos
12-06-2002, 03:02 PM
okay, I give up for now. If anyone can tell me how to install perl into apache without using mod_perl, I'd appreciate it....