You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rene Bartsch <ml...@bartschnet.de> on 2011/07/29 20:40:14 UTC
[users@httpd] mod_proxy_ftp: Wrong HTTP-URLs in FTP directory listing???
Hi,
I want to setup a FTP->HTTP-proxy (bridging between FTP-only fileserver
and HTTP-only application).
I'm using the "2.2.14-5ubuntu8.4" package on Ubuntu 10.04.2 LTS (mod_proxy
and mod_proxy_ftp are enabled).
Current config:
-------------------- snip -------------------------
ProxyRequests Off
<Location /<myapp>/>
ProxyFtpDirCharset utf-8
Order Deny,Allow
Deny from all
Allow from 127.0.0.1/8
Allow from 192.168.176.0/22
## !!! For testing only !!!
Allow from all
</Location>
<Location /<myapp>/>
ProxyPass ftp://<myftpserver>.de
ProxyPassReverse ftp://<myftpserver>.de
</Location>
-------------------------- snip -----------------------------
When I access "http://<mywebserver>/<myapp>/" I get a directory listing,
but with wrong URLs.
Instead of rewriting "ftp://<myftpserver>.de" to
"http://<mywebserver>/<myapp>/<myfile>", the directory listing uses
"http://<mywebserver>/<myapp>/<username>@/<myapp>/<myfile>", where
<username> is from the login credentials apache forwards to the FTP server.
Accessing the HTTP-URLs fails as there is no location/directory
"http://<mywebserver>/<myapp>/<username>@/<myapp>/", of course.
Does anyone have any idea what's going wrong here?
Thanx for any hint,
Renne
---------------------------------------------------------------------
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