Microsoft ftp7.5 for iis7.x Problems and Solutions

Source: Internet
Author: User
Tags ftp site ftp client

Microsoft ftp7.5 has been installed on iis7.0 recently, but many problems have occurred while using ftp7.5. There are not many useful materials available on the Internet. After an afternoon's exploration, I will share them here, hope to help those who encounter similar problems when using Microsoft ftp7.5.

This article only describes how to set up Microsoft ftp7.5 for iis7.x, including setting up and setting FTP sites and setting user permissions.

This article does not cover the following:

      Installation and use of other functional software that can replace Microsoft ftp7.5 How to Create Windows users and groups How to install iis7.x How to install Microsoft ftp7.5 for iis7.x How to Set and use the SSL feature of Microsoft ftp7.5 How to Set and use the Microsoft ftp7.5 user isolation Function

For more information, see http://www.iis.net.

My goals:

Create an FTP users user group in the system, and create bimoo and bimooftp users under the user group.

User bimoo can view the content list of the entire FTP site and have sub-applications in the siteProgramThe read and write permissions of upload, but you cannot view or read anything other than the sub-application upload. bimooftp has the read and write permissions of the entire site.

First, follow the correct method,ArticleSome problems encountered during use are listed.

Open IIS manager, right-click "server name" or "website", and select "add FTP site", for example:

Enter the FTP website name, select the physical path of the content directory, and click "Next". The following window is displayed:

Do not select the above "enable virtual host name". If you select this option, the following error occurs when you use an FTP client to connect to the website after creating a website:

You can set SSL according to the actual situation. Here, select "allow SSL" and click "Next". The following window is displayed:

Here, the Basic Authentication [authentication] type is enabled. In the authorization [authorization] Option, select allow "specified user [specified users]" to access and enter the user name, use commas (,) for multiple user names, select the corresponding permission [permissions], and click "finish. Then I want to add two "Applications" or "virtual directories" to the FTP site. At this time, an FTP site is ready.

The FTP site name I created here is "ftp_server", which contains two applications, sites and upload. The general structure is shown in:

The following describes the user authorization issues. I do not allow anonymous users to access them here, So I enable the "Basic Authentication" authentication type in "FTP authentication" on the site, "Anonymous Authentication" is disabled ". Then add the authorization rules in "FTP authorization rules", such:

Add authorization rules to "FTP Authorization Rules" in application sites in ftp_server, for example:

Add authorization rules to "FTP Authorization Rules" in the application upload in ftp_server, for example:

Note:Here, both bimooftp and bimoo belong to the FTP users user group, and they both have read and write permissions. Therefore, you can directly set rules for the user group ftp users. In addition, the sub-application and virtual directory will automatically inherit the authorization rules of the entire FTP site. Here I delete the inherited rules and add my own rules.

There is another problem, in the site's "FTP directory browsing", make sure to select "MS-DOS" in "directory listing style", if you select "Unix", then when using the FTP client to connect, the directory and file list cannot be listed. For example:

OK. If you have installed the above steps, you should achieve the goal. User bimoo can read and write the upload application and view the content list of the entire FTP site, however, you cannot view or read the content of the sites application. bimooftp users have the permission to view and read the site. Try FTP client now.

The following describes the problems I encountered during installation:

      improper user authorization

      at the beginning of user authorization, the user bimooftp was granted the read and write permissions for the entire FTP site, and the user bimoo was not granted any permissions; then, grant the user bimoo the read and write permissions of the FTP site idea application sites. In this case, the user bimooftp can connect to the FTP site, but the following error occurs when the user bimoo connects to the Child application sites:

      solution:

      grant the user bimoo read permission at the FTP site level. If you want to authorize a virtual directory or sub-application to the user, you must ensure that you have at least read permission on the parent directory or site.

      bind a domain name to the FTP site

      If you bind a domain name to an FTP site, such as a ftp://ftp.bmshops.com, the following error occurs:

      solution:

      do not bind a domain name to the FTP site. Leave the Host Header blank. In this way, you cannot create multiple FTP sites. I wonder if there is any better solution to this problem.

      later, I found the answer in an article on the official IIS website. The article address is as follows:

      http://learn.iis.net/page.aspx/320/using-ftp-virtual-host-names/

      because ftp7.5 provides the web site-like virtual host function, multiple FTP sites can use port 21 and the same IP address, therefore, when accessing the FTP site, the user name must be in the form of virtualhost | username; otherwise, the error "503 valid hostname is expected" will occur.

      This solves the problem of binding domain names to FTP sites and creating multiple FTP sites. haha :)

      improper FTP site setup

      at the beginning, the FTP client can be connected successfully due to improper settings, but directories and files cannot be listed. Later, I searched for the data connection type of the FTP client. Most of them said that the data connection type of the FTP client was changed to passive mode [PASV mode], but it still did not work. Later it was found that the directory listing style was set to UNIX on the FTP server side and resolved after being set to MS-DOS.

Refer:

      Http://learn.iis.net/page.aspx/320/using-ftp-virtual-host-names/ http://learn.iis.net/page.aspx/263/installing-and-configuring-ftp-on-iis-7/

      Let's write about this. You are welcome to give us some advice and make a brick!
      Author: ttzhang (technology life-Zhang Tao's technology blog)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.