通过HTTP访问FTP? [英] Access FTP via HTTP?

查看:52
本文介绍了通过HTTP访问FTP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个要通过HTTPS访问的外部安全FTP服务器(我们的基础架构不支持FTP).我知道这是可能的,但我不知道如何.我正在寻找这样的东西: ftp://ftp.mozilla.org/pub/mozilla.org/zz http://ftp.mozilla.org/pub/mozilla.org/zz

We have an external secure FTP server that we want to access through HTTPS (our infrastructure does not support FTPs). I know that's possible but I don't know how. I'm looking for something like this: ftp://ftp.mozilla.org/pub/mozilla.org/zz http://ftp.mozilla.org/pub/mozilla.org/zz

谢谢!

推荐答案

要澄清一下:正如SLaks所说,FTP和HTTP是两个完全不同的东西.您发布的链接使用两个单独的协议.一个是ftp,一个是http.您似乎对第二个链接感到困惑,因为它仍然包含ftp.发生的情况是"ftp.mozilla.org"是该服务器的域名.这些页面本身看起来很相似,因为没有您要引用的实际页面(您正在访问目录本身),并且该目录中没有指定默认页面(例如,没有index.html).

To add some clarification: FTP and HTTP are, as SLaks said, two entirely different things. The links you have posted use two separate protocols. One if ftp, and one is http. You appear to be getting confused by the second link because it still has ftp in it. What is happening there is that "ftp.mozilla.org" is the domain name of that server. the pages themselves look similar because there is not actual page you are referencing (you are visiting the directory itself) and there is no default page specified in that directory (for example, no index.html).

在这种情况下,默认行为是仅列出目录内容,这几乎是ftp协议所做的一切.

The default behavior in this case is to simply list the directory contents, which is pretty much what the ftp protocol does anyway.

所以:

您将需要在ftp服务器(物理盒)上安装Web服务器程序(而不是ftp服务器程序!),并允许用户使用http(s)协议下载文件,或者如SLaks所建议的那样创建自己的代理(或找到一个存在的代理),该代理将从http协议接收命令并将其转换为等效的ftp命令,然后将其发送到ftp服务器.

You will need to either install a web server program (not an ftp server program!) on the ftp server (the physical box) and let users download files using the http(s) protocol, or you will as SLaks suggested need to create your own proxy (or find one that exists) that will receive commands from the http protocol and transform them into the equivalent ftp commands, which are then sent to the ftp server.

我个人建议使用前者,因为它不那么复杂.

Personally, I recommend the former, as it is less complicated.

这篇关于通过HTTP访问FTP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆