xml version="1.0" encoding="ISO-8859-1"?>
|
Apache HTTP Server Version 2.2 ![]() Apache Module mod_proxy_ftpAvailable Languages: en
SummaryThis module requires the service of Thus, in order to get the ability of handling FTP proxy requests,
WarningDo not enable proxying until you have secured your server. Open proxy servers are dangerous both to your network and to the Internet at large. DirectivesThis module provides no directives. Topics
See alsoWhy doesn't file type xxx download via FTP?You probably don't have that particular file type defined as
application/octet-stream bin dms lha lzh exe class tgz taz Alternatively you may prefer to default everything to binary: DefaultType application/octet-stream How can I force an FTP ASCII download of File xxx?In the rare situation where you must download a specific file using the
FTP How can I do FTP upload?Currently, only GET is supported for FTP in mod_proxy. You can of course use HTTP upload (POST or PUT) through an Apache proxy. How can I access FTP files outside of my home directory?An FTP URI is interpreted relative to the home directory of the user who is logging in. Alas, to reach higher directory levels you cannot use /../, as the dots are interpreted by the browser and not actually sent to the FTP server. To address this problem, the so called Squid %2f hack was implemented in the Apache FTP proxy; it is a solution which is also used by other popular proxy servers like the Squid Proxy Cache. By prepending/%2f to the path of your request, you can make
such a proxy change the FTP starting directory to / (instead
of the home directory). For example, to retrieve the file
/etc/motd, you would use the URL:
How can I hide the FTP cleartext password in my browser's URL line?To log in to an FTP server by username and password, Apache uses different strategies. In absense of a user name and password in the URL altogether, Apache sends an anonymous login to the FTP server, i.e.,
This works for all popular FTP servers which are configured for anonymous access. For a personal login with a specific username, you can embed the user name into the URL, like in:
If the FTP server asks for a password when given this username (which
it should), then Apache will reply with a
in the first place). NoteThe password which is transmitted in such a way is not encrypted on its way. It travels between your browser and the Apache proxy server in a base64-encoded cleartext string, and between the Apache proxy and the FTP server as plaintext. You should therefore think twice before accessing your FTP server via HTTP (or before accessing your personal files via FTP at all!) When using unsecure channels, an eavesdropper might intercept your password on its way. Available Languages: en |