Create an FTP site with an independent account on IIS7.5 in Windows 2008

Source: Internet
Author: User
Tags ftp site

Create an FTP site with an independent account on IIS7.5 in Windows 2008

For IIS7.5 on Windows 2008, FTP is already very powerful and is not inferior to third-party software such as Serv-U. This article describes how to configure an FTP site with an independent account on IIS7.5.

1. Create a Windows account
Right-click my computer and choose manage to open the server management console. Expand "Server Manager", expand "configuration", "local users and groups", and click "user. Right-click the blank area on the right and select "new user" to open the new user dialog box. Enter the username test1 and password here, and set the password to never expire. You do not need to change the password next time you log on.

Double-click the new user to open the user attribute dialog box. Click the "affiliated" tab, set the account test1 to belong to the guests Group, and delete the original users Group.

2. Create a directory
Create a directory named test1 under the D: wwwroot directory as the main directory for the user test1 to log on to ftp.

Add the readable, writable, and modifiable permissions of the test1 user to the D: wwwroot est1 directory so that the user can log on to upload, download, and delete files.

3. Add an FTP site in IIS
Run "inetmgr" to open the IIS console, right-click "website", and select "Add FTP site ". The specific configuration items and their values are as follows:

FTP site name: test1
Physical path: D: wwwroot est1



IP address: all unallocated
Port: 21
Enable virtual host name: not checked
Automatically start the FTP site: Check
SSL: None



Identity verification: Basic
Allowed access: specified user, test1
Permission: read and write



4. Client connection

Use a tool like FlashFXP to test whether the IP address is the IP address of the server, Port 21 we just configured, and the user name and password are the account and password of the test1 user. Is it easy?



In addition to test1, you can configure test2, test3, and so on to implement a user, a directory, and an ftp site. This is very similar to creating an independent site in IIS! Configure an FTP site for an independent user on IIS7.5 in Windows 2008

IIS7.5 enable virtual host name for FTP site

IIS7.5 in the FTP site configuration wizard, there is a "binding and SSL Settings" interface. In this step, there is an option to "enable virtual host name". After the option is checked, you can enter a virtual host name (actually a domain name ). What is the significance of doing so? This is meaningful.




We know that FTP is the same as HTTP. You can use a string like "protocol: // Address: Port/path/file name" to represent a resource, such as ftp: // 127.0.0.1: 21/test/file.txt, which is a resource and an FTP resource. Ftp: // 127.0.0.1: 21 indicates the server information, such as 127.0.0.1 as the server IP address and listening to port 21.

What is the relationship between so many FTP hosts and enabling virtual host names? Before that, you must set up two FTP sites on a server to listen to different ports. For example, ftp: // 127.0.0.1: 21/and ftp: // 127.0.0.1: 2121, so that two FTP sites can be created. What if both of our FTP sites want to use port 21? In fact, it can be more advanced. We can introduce the concept of virtual hosts. We know that if you want to open multiple WEB sites in IIS, either the port is different or different virtual host names (domain names) are set for each site ). The biggest improvement of IIS7.5 is that, for FTP, IIS uses the same mechanism as WEB, and you can set a virtual host name for the FTP site, in this way, you can create multiple FTP sites with the same port on IIS. For example, if ftp: // your domain name: 21 and ftp: // www.111cn.net port is 21, it can exist at the same time.

Well, you should understand the significance of this virtual host name option. So if we set a virtual host name when configuring an ftp site, what should we pay attention to during use? In fact, you must note that the login user name must be in the form of "domain name | user name. For example, ftp: // your domain name: 21. If the user name is splaybow, the user name must be your domain name | splaybow. If you do not add a domain name in front, the system will prompt you that the directory has no permission when you log on! For example, home directory inaccessible.

This article describes how to enable virtual host names on the IIS7.5 FTP site. Thank you for your help.

 

Related Article

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.