Administering FTP with Configuration Files
Because FTP uses the same XML-based configuration files as IIS 8.0, you can configure the settings for FTP sites by editing the applicationHost.config file, and you can create sites from scratch in the same manner. Although we don't explore every available option, we discuss some of the basic FTP configurations here. All the code in this section uses the FTPConfiguration.txt code file.
Adding FTP over SSL to an Existing Site
To add FTP over SSL to an existing website, you need to retrieve the SSL hash to include in the applicationHost.config file. Browse to the web server in the Connections pane, select the Server Certificates feature, and then find the FTP certificate. Double-click on the certificate to open the properties dialog, choose the Details tab, and scroll until you find Thumbprint. Because this thumbprint is needed in the applicationHost.config file, keep this dialog open while you edit the applicationHost.config file or copy the thumbprint to a Notepad file for use later. Next, open the applicationHost.config file in Visual Studio or any text editor, and find the section for your website with FTP. It should look something like this:
<site name="Web Site 1" id="99"> <application path="/"> ...
Get Professional Microsoft IIS 8 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.