httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirill Karatyshov" <kir...@1314.ru>
Subject [users@httpd] ftp proxy connects to 0.0.0.0
Date Sat, 22 Nov 2003 00:54:23 GMT
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


Mime
View raw message