IIS的ftp服务器

 呵呵临时配置

http://support.microsoft.com/kb/323384

安装 Internet 信息服务和 FTP 服务

<script type="text/javascript">loadTOCNode(2, 'summary');</script> 由于 FTP 依赖 Microsoft Internet 信息服务 (IIS),因此计算机上必须安装 IIS 和 FTP 服务。若要安装 IIS 和 FTP 服务,请按照下列步骤操作。

注意:在 Windows Server 2003 中,安装 IIS 时不会默认安装 FTP 服务。如果已在计算机上安装了 IIS,您必须使用“控制面板”中的“添加或删除程序”工具安装 FTP 服务。

1.单击“开始”,指向“控制面板”,然后单击“添加或删除程序”。
2.单击“添加/删除 Windows 组件”。
3.在“组件”列表中,单击“应用程序服务器”,单击“Internet 信息服务 (IIS)”(但是不要选中或清除复选框),然后单击“详细信息”。
4.单击以选中下列复选框(如果它们尚未被选中):
“公用文件
文件传输协议 (FTP) 服务
Internet 信息服务管理器”
5.单击以选中您想要安装的任何其他的 IIS 相关服务或子组件旁边的复选框,然后单击“确定”。
6.单击“下一步”。
7.出现提示时,请将 Windows Server 2003 CD-ROM 插入计算机的 CD-ROM 或 DVD-ROM 驱动器,或提供文件所在位置的路径,然后单击“确定”。
8.单击“完成”。
IIS 和 FTP 服务现已安装。您必须配置 FTP 服务,然后才能使用它。

 

接下来是配置目录

http://weblogs.asp.net/owscott/archive/2004/03/10/87262.aspx

Mastering IIS FTP - Part 2 - Virtual Directories/Physical Directories

In Part 1 we covered ways to use the hidden power of Microsoft's FTP server product.  We talked about ways to leverage virtual directories along with Windows user accounts.

Today I want to take this one step further and discuss how to work with the IIS FTP quirks with using virtual directories as . . . yes, virtual directories.  Because Microsoft has this unique way to utilizing virtual directories to offer more control, it also means that simply using virtual directories for their original purpose isn't as obvious as it should be.

Rule #3: A Virtual Directory created in IIS FTP isn't seen by a FTP program

If we want to create a virtual folder that points to a different location on a server, one of the first things we will notice is that if we create the virtual directory in IIS FTP and then use a FTP client to log in, we won't see the folder!!  We can use ChgDir if our FTP client supports it and type in the name of the vdir but that's often times not good enough.  We want to actually see it.

Let me explain it further.  Consider the following folder structure where d:/domains/mysite/ is the FTP root path:

d:/domains/mysite/
d:/domains/mysite/images/
d:/domains/mysite/bin/
d:/domains/mysite/admin/

Now, let's create a virtual directory in IIS FTP called downloads which will point to:
e:/downloads/

When we log into our FTP account, we will see images, bin and admin but we won't see downloads.

Why is that?  Since virtual directories aren't always used for their original purpose, as we saw in Part 1, they don't automatically appear.  The other reason is that FTP programs will scan the files and folders on disk to determine what to display.  Since virtual directories don't reside at the folder level, they won't be shown with the rest of the folders.

So what do we do?  Fortunately the solution is simple. 

Tip #2: Create an empty “physical” directory to have a “virtual” directory appear in a FTP program

Since the FTP client program will check for files and folders on disk, simply create an empty folder on disk where the virtual directory should show up.  In my example above, it means creating an empty folder called d:/domains/mysite/downloads/.  Now, after you log into this FTP account with your FTP program, you will see images, bin, admin and downloads.  If you double click on downloads you will be taken to e:/downloads because the virtual directory in IIS FTP will take precedence.

Rule #4: If both a Virtual Directory and Physical Directory exist, the Virtual Directory takes precedence

In my example above, I've created a “virtual“ folder which redirects to another location on the server, and a “physical“ folder so that it will show up in my FTP program.  Even if I put files in the empty downloads folder, I won't be able to access them by double clicking on the downloads folder.  Instead of being directed to d:/domains/mysite/downloads/ (physical folder) I will be directed to e:/downloads/ (virtual folder).

In summary, when creating a virtual directory that should show up in the FTP client program, make sure to create an empty physical directory to match.

In Part 1 we covered working with Virtual Directories and Windows Users.  In this Part we covered working with Virtual Directories and Physical Directories.  In Part 3 and Part 4 we will cover IIS6 User isolation (and why I don't use it) and some tricks for more advanced configurations.

ok,搞定了,不过这个ftp server还是很naive的,连限速都没有:(哈哈

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值