Professional Microsoft IIS 8
by Kenneth Schaefer, Jeff Cochran, Scott Forsyth, Dennis Glendenning, Benjamin Perkins
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="/"> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access