Creating FTP Site in IIS is fairly simple. You can do so in following easy steps
- First of all install the FTP services using the following steps
- Open the Server Manager and go to Roles and click on “Add Roles”
- Click Next until you reach Select Role Services page, leave the default and check FTP Server, FTP Service and FTP Extensibility at the bottom. Click Next, follow the wizard and finish the role installation.
- Next, open the IIS Manager from Start > Administrative Tools.
- Expand the server, right click on Sites and click on Add FTP Site.
- Give the name as Default FTP Site and enter the path as C:InetpubFtproot
- Configure Binding and SSL. In our case, we’d like to bind to all unassigned IP addresses and Allow SSL.
- Next, select Authentication as Basic and under Authorization, select Allow access to as All Users and assign only the write permission.
- Then click on Finish.
- Under the newly created FTP Site, click on FTP User Isolation
- Under Isolate Users, select the option User name directory (disable global virtual directories)
- Click on Apply.
- Now create a directory named LocalUser under the C:InetpubFtproot directory.
- Now in IIS, expanding the Default FTP Site will display the directory LocalUser.
- Right click on the directory named LocalUser and click on Add Virtual Directory.
- Enter the Alias name and the Physical Path of the directory.
- Now expand the LocalUser directory under Default FTP Site and you will be able to see the virtual directory.
- In the new Virtual Directory, click on FTP Authorization Rules.
- Click on Add Allow Rule from the Actions window.
- Select the option Specified Users and enter the name of the user.
- Assign both Read and Write permissions to the user and click on OK.
You can now create multiple virtual directories under the LocalUser folder using the steps 13-19.
Things to keep in mind:
- Create the appropriate system user and assign a strong password.
- Create a physical directory in an appropriate location before creating the virtual directory.
- Make sure to keep the name of the user and the virtual directory the same.
- Make sure to open the ports 20 and 21 in the Firewall.