You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kirill Karatyshov <ki...@1314.ru> on 2003/11/22 01:54:23 UTC

[users@httpd] ftp proxy connects to 0.0.0.0

Hello.
I'm trying to forward requests to remote ftp-server with simple htaccess
(located in /ftp/ dir):
RewriteEngine on
RewriteRule (.*)\.txt$ ftp://123.123.123.123 [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 ftp://123.123.123.123
proxy_ftp.c(917): proxy: FTP: connecting ftp://123.123.123.123 to (null):80
proxy_ftp.c(995): proxy: FTP: fam 2 socket created, trying to connect to
0.0.0.0:80 ((null))...
(OS 10049)The requested address is not valid in its context.  : proxy: FTP:
attempt to connect to 0.0.0.0:80 ((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 0.0.0.0, not
127.0.0.1), 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:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org