DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24922>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24922

ftp proxy connects to 0.0.0.0

           Summary: ftp proxy connects to 0.0.0.0
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: Major
          Priority: Other
         Component: mod_proxy
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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/$1.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/file.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

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.
Also, i've tried different URI schemes, because i think that module just cant 
parse it correctly, but no way..
ftp://123.123.123.123
ftp://123.123.123.123/
ftp://123.123.123.123:21
ftp://123.123.123.123:21/
ftp://anonymous:[EMAIL PROTECTED]
etc, all failed.

Also, i've tried to bind remote ftp with ProxyPass directive -- same result 
(and again -- binding http server was successful)
Please help, I don't like SQUID for some reasons and really would like to have 
ftp-proxy with Apache running.
Thanks a lot in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to