Раздел 10. Apache modules Пункты: 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 163 164 165 166 167 168 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 203 204 205 206 207 208 209 210 211 212 213 RU EN Пункт 176. Apache Module mod_proxy_ftp
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. Why 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: ForceType 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 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 absence 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 insecure channels, an eavesdropper might intercept your password on its way. Why do I get a file listing when I expected a file to be downloaded?In order to allow both browsing the directories on an FTP server and downloading files, Apache looks at the request URL. If it looks like a directory, or contains wildcard characters ("*?[{~"), then it guesses that a listing is wanted instead of a download. You can disable the special handling of names with wildcard characters.
See the ProxyFtpDirCharset Directive
The ProxyFtpEscapeWildcards Directive
The Set to "off" to allow downloading files with wildcards in their names from FTP servers that don't understand wildcard escaping. ProxyFtpListOnWildcard Directive
The Пункты: 85 86 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 163 164 165 166 167 168 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 203 204 205 206 207 208 209 210 211 212 213 |