httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirill Karatyshov" <>
Subject [users@httpd] ftp proxy connects to
Date Sat, 22 Nov 2003 00:54:23 GMT
I'm trying to forward requests to remote ftp-server with simple htaccess
(located in /ftp/ dir):
RewriteEngine on
RewriteRule (.*)\.txt$ [P]

But Apache (2.0.48) returns such error:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /ftp/1.txt.

Reason: Could not connect to remote machine: (null) port 80

I've tested same htaccess with http forward and it just works fine. In
error.log (debug mode) i'm getting such messages:

proxy_ftp.c(824): proxy: FTP: serving URL
proxy_ftp.c(917): proxy: FTP: connecting to (null):80
proxy_ftp.c(995): proxy: FTP: fam 2 socket created, trying to connect to ((null))...
(OS 10049)The requested address is not valid in its context.  : proxy: FTP:
attempt to connect to ((null)) failed

I have all proxy modules enabled, but no directives like AllowCONNECT set,
probably this is the reason, but i've looked everywhere and still have no
idea which directives should I set to get this thing working..

Some more info: i've tested it under FreeBSD and WinXP, got same result,
also if there's local ftp-server running (listening to, not, then apache connects to it successfully.

Thanks a lot in advance.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message