<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>BillS IIS Blog : Configuration</title><link>http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx</link><description>Tags: Configuration</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Now Online: Comprehensive IIS7 Technical Reference</title><link>http://blogs.iis.net/bills/archive/2009/01/20/now-online-comprehensive-iis7-technical-reference.aspx</link><pubDate>Wed, 21 Jan 2009 06:33:50 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2880715</guid><dc:creator>bills</dc:creator><slash:comments>11</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2880715</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2009/01/20/now-online-comprehensive-iis7-technical-reference.aspx#comments</comments><description>&lt;p&gt;If you’ve ever tried to find information on how to install a particular IIS7 feature, or how to configure it using the IIS Manager tool, AppCmd.exe, the new Microsoft.Web.Administration interface or WMI provider, this post is for you.&amp;#160; &lt;/p&gt;  &lt;p&gt;Every IIS7 feature is now comprehensively documented on &lt;a href="http://www.iis.net/ConfigReference/"&gt;http://www.iis.net/ConfigReference/&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;This IIS7 Technical Reference provides a list of all the built-in IIS7 features, alphabetized for quick access.&amp;#160; If you know the configuration name you are interested in, just type it into the URL…for example if you’re looking for information on the system.webServer &amp;lt;caching&amp;gt; setting, type: &lt;a href="http://www.iis.net/ConfigReference/system.webServer/caching"&gt;http://www.iis.net/ConfigReference/system.webServer/caching&lt;/a&gt; and whoila, you now have a complete set of reference material on the subject.&amp;#160; Literally hundreds of pages of documentation are now freely available at &lt;a href="http://www.iis.net/ConfigReference/"&gt;http://www.iis.net/ConfigReference/&lt;/a&gt; and super easy to access.&amp;#160; &lt;/p&gt;  &lt;p&gt;Each topic has a quick summary of what the feature is, how to install the feature as well as a quick “how-to” article (with pictures) on locating and using the feature inside IIS Manager.&amp;#160; Each feature is carefully documented with comprehensive information on the configuration section behind each feature including information on each attribute, it’s type and default value as well as sample configuration.&amp;#160; And perhaps best of all, every topic also has sample code for how to use the feature from AppCmd.exe, C#, VB.NET, JavaScript and VBScript!&amp;#160; No more scavenging the forums or live search for sample code!&lt;/p&gt;  &lt;p&gt;This reference guide could not have happened without a lot of hard work by many, especially &lt;a href="http://blogs.iis.net/robert_mcmurray"&gt;Robert McMurray&lt;/a&gt; and Pete Harris (the mysterious man behind the iis.net site).&amp;#160; Many thanks to them, we hope you enjoy this new section on our community site!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2880715" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/bills/archive/tags/IIS+News+Item/default.aspx">IIS News Item</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>Why IIS7? Top 12 cool features…</title><link>http://blogs.iis.net/bills/archive/2008/11/20/why-iis7-top-12-cool-features.aspx</link><pubDate>Fri, 21 Nov 2008 04:13:45 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2759317</guid><dc:creator>bills</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2759317</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/11/20/why-iis7-top-12-cool-features.aspx#comments</comments><description>&lt;p&gt;Every time I talk with customers in meetings or at conferences I’m struck by how many cool amazing new capabilities IIS7 has.&amp;#160; I can go on for literally hours talking about the new features and benefits, and showing demos.&amp;#160; And with each new &lt;a href="http://www.iis.net/extensions"&gt;IIS7 Extension&lt;/a&gt;, the list of new features just gets bigger and bigger.&amp;#160; A few months ago I realized we didn’t have the top list of features written up anywhere, and so we started the process of distilling down the list to the top 10.&amp;#160; We almost made it!&amp;#160; We ended up with the top 12 reasons you should get IIS7 today.&amp;#160; Check them out here:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.iis.net/getstarted" href="http://www.iis.net/getstarted"&gt;http://www.iis.net/getstarted&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Over the next few weeks we’ll be adding a cool demo for each of the reasons to show the features in action.&amp;#160; Be sure to check back soon!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2759317" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/bills/archive/tags/Extensibility/default.aspx">Extensibility</category><category domain="http://blogs.iis.net/bills/archive/tags/Administration/default.aspx">Administration</category><category domain="http://blogs.iis.net/bills/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.iis.net/bills/archive/tags/IIS+News+Item/default.aspx">IIS News Item</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Performance/default.aspx">Performance</category><category domain="http://blogs.iis.net/bills/archive/tags/Videos/default.aspx">Videos</category><category domain="http://blogs.iis.net/bills/archive/tags/Media/default.aspx">Media</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.iis.net/bills/archive/tags/Deployment/default.aspx">Deployment</category></item><item><title>Find New IIS7 Extensions at http://www.iis.net/extensions/</title><link>http://blogs.iis.net/bills/archive/2008/11/11/find-new-iis7-extensions-at-http-www-iis-net-extensions.aspx</link><pubDate>Tue, 11 Nov 2008 22:55:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2739094</guid><dc:creator>bills</dc:creator><slash:comments>7</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2739094</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/11/11/find-new-iis7-extensions-at-http-www-iis-net-extensions.aspx#comments</comments><description>&lt;P&gt;I’m happy to announce that IIS7 Extensions have found their home at &lt;A href="http://www.iis.net/extensions"&gt;http://www.iis.net/extensions&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Every since IIS7 shipped 9 months ago, the IIS team has been cranking away adding new features to the platform.&amp;nbsp; Last time I blogged about &lt;A href="http://blogs.iis.net/bills/archive/2008/06/02/how-iis-ships-software.aspx" mce_href="http://blogs.iis.net/bills/archive/2008/06/02/how-iis-ships-software.aspx"&gt;how we do this&lt;/A&gt;, I realized we didn’t have a single place to learn about all of them, so I kicked off an effort within the team to create this.&amp;nbsp; Now that the pages are up, it is amazing to see how many new capabilities are already available on top of IIS7…which all by itself had more new features than any other IIS release in the history of the product.&amp;nbsp; It is a testament to not only the ingenuity and hard work of the IIS team, but a real validation that IIS7 is not just a Web server, it is a server platform.&amp;nbsp; All of these new features are built on top of public extensibility points that any developer can use, and provide a seamless runtime, configuration and administration experience that looks and feels like they were built into the product to begin with!&amp;nbsp; Here they are:&lt;/P&gt;
&lt;P&gt;Landing page:&amp;nbsp; &lt;A href="http://www.iis.net/extensions"&gt;http://www.iis.net/extensions&lt;/A&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/AdministrationPack href="http://www.iis.net/AdministrationPack" mce_href="http://www.iis.net/AdministrationPack"&gt;http://www.iis.net/AdministrationPack&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/ApplicationRequestRouting href="http://www.iis.net/ApplicationRequestRouting" mce_href="http://www.iis.net/ApplicationRequestRouting"&gt;http://www.iis.net/ApplicationRequestRouting&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/BitRateThrottling href="http://www.iis.net/BitRateThrottling" mce_href="http://www.iis.net/BitRateThrottling"&gt;http://www.iis.net/BitRateThrottling&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/DatabaseManager href="http://www.iis.net/DatabaseManager" mce_href="http://www.iis.net/DatabaseManager"&gt;http://www.iis.net/DatabaseManager&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/FTP href="http://www.iis.net/FTP" mce_href="http://www.iis.net/FTP"&gt;http://www.iis.net/FTP&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/IISManager href="http://www.iis.net/IISManager" mce_href="http://www.iis.net/IISManager"&gt;http://www.iis.net/IISManager&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/PowerShell href="http://www.iis.net/PowerShell" mce_href="http://www.iis.net/PowerShell"&gt;http://www.iis.net/PowerShell&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/SmoothStreaming href="http://www.iis.net/SmoothStreaming" mce_href="http://www.iis.net/SmoothStreaming"&gt;http://www.iis.net/SmoothStreaming&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/URLRewrite href="http://www.iis.net/URLRewrite" mce_href="http://www.iis.net/URLRewrite"&gt;http://www.iis.net/URLRewrite&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/UrlScan href="http://www.iis.net/UrlScan" mce_href="http://www.iis.net/UrlScan"&gt;http://www.iis.net/UrlScan&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/WebDeploymentTool href="http://www.iis.net/WebDeploymentTool" mce_href="http://www.iis.net/WebDeploymentTool"&gt;http://www.iis.net/WebDeploymentTool&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/WebPlaylists href="http://www.iis.net/WebPlaylists" mce_href="http://www.iis.net/WebPlaylists"&gt;http://www.iis.net/WebPlaylists&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title=http://www.iis.net/WebDAV href="http://www.iis.net/WebDAV" mce_href="http://www.iis.net/WebDAV"&gt;http://www.iis.net/WebDAV&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Check out the &lt;A href="http://www.iis.net/extensions" mce_href="http://www.iis.net/extensions"&gt;more than a dozen new features&lt;/A&gt; available today!&amp;nbsp; Over the next few weeks we’ll be adding video demos of each feature and more new content.&amp;nbsp; Stay tuned for many cool new features to come!&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2739094" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/bills/archive/tags/PHP/default.aspx">PHP</category><category domain="http://blogs.iis.net/bills/archive/tags/Extensibility/default.aspx">Extensibility</category><category domain="http://blogs.iis.net/bills/archive/tags/IIS+News+Item/default.aspx">IIS News Item</category><category domain="http://blogs.iis.net/bills/archive/tags/Media/default.aspx">Media</category><category domain="http://blogs.iis.net/bills/archive/tags/FastCGI/default.aspx">FastCGI</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Extensions/default.aspx">Extensions</category><category domain="http://blogs.iis.net/bills/archive/tags/Security/default.aspx">Security</category><category domain="http://blogs.iis.net/bills/archive/tags/URL+Rewrite/default.aspx">URL Rewrite</category><category domain="http://blogs.iis.net/bills/archive/tags/Deployment/default.aspx">Deployment</category></item><item><title>How to Script / Automate IIS7 Configuration (without writing code)</title><link>http://blogs.iis.net/bills/archive/2008/06/01/how-do-i-script-automate-iis7-configuration.aspx</link><pubDate>Mon, 02 Jun 2008 00:58:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2393607</guid><dc:creator>bills</dc:creator><slash:comments>5</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2393607</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/06/01/how-do-i-script-automate-iis7-configuration.aspx#comments</comments><description>&lt;P&gt;I hear this question a lot in the &lt;A href="http://forums.iis.net/" mce_href="http://forums.iis.net/"&gt;http://forums.iis.net/&lt;/A&gt;, and thanks to &lt;A href="http://blogs.iis.net/carlosag/" mce_href="http://blogs.iis.net/carlosag/"&gt;Carlos&lt;/A&gt; and team's rocking Configuration Editor, figuring this out on your own is a breeze.&amp;nbsp; Here is how you can generate code for ANY IIS7 configuration change, without writing a line yourself.&lt;/P&gt;
&lt;P&gt;1) download the IIS7 Administration Pack.&amp;nbsp; What, you don't have it already?&amp;nbsp; You're really missing out on some fantastic tools, including the Configuration Editor.&amp;nbsp; Learn more about the admin pack here &lt;A title=http://learn.iis.net/page.aspx/401/using-the-administration-pack/ href="http://learn.iis.net/page.aspx/401/using-the-administration-pack/" mce_href="http://learn.iis.net/page.aspx/401/using-the-administration-pack/"&gt;http://learn.iis.net/page.aspx/401/using-the-administration-pack/&lt;/A&gt;&amp;nbsp; You can download &lt;A href="http://www.iis.net/downloads/1682/ItemPermaLink.ashx" mce_href="http://www.iis.net/downloads/1682/ItemPermaLink.ashx"&gt;x86&lt;/A&gt; and &lt;A href="http://www.iis.net/downloads/1683/ItemPermaLink.ashx" mce_href="http://www.iis.net/downloads/1683/ItemPermaLink.ashx"&gt;x64&lt;/A&gt; from &lt;A href="http://www.iis.net/downloads" mce_href="http://www.iis.net/downloads"&gt;http://www.iis.net/downloads&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;2) open "IIS Manager" and click on the "Configuration Editor" feature under the "Management" category:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image.png" mce_href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=480 alt=image src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb.png" width=644 border=0 mce_src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;3) Find the configuration section(s) you want to edit using the drop-down combo box, in this case isapiFilters:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_3.png" mce_href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_3.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=480 alt=image src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_3.png" width=644 border=0 mce_src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_3.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;4) use the configuration editor to make your change.&amp;nbsp; In this case, I'm editing a collection, which pops up a collection editor where I can add items to the isapiFilter list by clicking 'add' in the task pane.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_4.png" mce_href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_4.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=459 alt=image src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_4.png" width=644 border=0 mce_src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_4.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;5) once you're done making any configuration updates, click on the 'Generate Script' task in the main Config Editor window:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_5.png" mce_href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_5.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=480 alt=image src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_5.png" width=644 border=0 mce_src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_5.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;6) the script generator creates three ways of automating the configuration change you just made&amp;nbsp; C#, JavaScript (again the AHAdmin COM interface) and AppCmd.exe&lt;/P&gt;
&lt;P&gt;&lt;A href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_6.png" mce_href="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_6.png"&gt;&lt;IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=510 alt=image src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_6.png" width=712 border=0 mce_src="http://wallpaper.iis7.org/blog/HowDoIScriptAutomateIIS7Configuration_FC71/image_thumb_6.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;7) Copy and Paste these changes into your own script / code and whoila, you've got sample code for making any IIS7 configuration change.&lt;/P&gt;
&lt;P&gt;You may also want to read up on the IIS7 Administration APIs.&amp;nbsp; You can find a lot more information here:&lt;/P&gt;
&lt;P&gt;&lt;A title="Using Scripts to Automate Management" href="http://learn.iis.net/page.aspx/98/using-scripts-to-automate-management/" mce_href="http://learn.iis.net/page.aspx/98/using-scripts-to-automate-management/"&gt;Using Scripts to Automate Management&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A title="Managing IIS with the IIS 7.0 PowerShell Provider" href="http://learn.iis.net/page.aspx/447/managing-iis-with-the-iis-70-powershell-provider/" mce_href="http://learn.iis.net/page.aspx/447/managing-iis-with-the-iis-70-powershell-provider/"&gt;Managing IIS with the IIS 7.0 PowerShell Provider&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2393607" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://blogs.iis.net/bills/archive/tags/Administration/default.aspx">Administration</category><category domain="http://blogs.iis.net/bills/archive/tags/Samples+_2600_amp_3B00_+Demos/default.aspx">Samples &amp;amp; Demos</category><category domain="http://blogs.iis.net/bills/archive/tags/IIS+News+Item/default.aspx">IIS News Item</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>How to add mime types with IIS7 Web.config</title><link>http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx</link><pubDate>Tue, 25 Mar 2008 14:27:48 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2252501</guid><dc:creator>bills</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2252501</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/03/25/how-to-add-mime-types-with-iis7-web-config.aspx#comments</comments><description>&lt;p&gt;Ever wanted to add a custom mime type to your Web server?&amp;#160; I ran into this issue the other day when I tried to serve up .mp4 files from my Web server and duh, I got this error:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="484" alt="404.3 error" src="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image_thumb.png" width="621" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;404.3 error - mime type missing!&lt;/p&gt;  &lt;p&gt;Why does IIS block requests for unknown mime types?&amp;#160; Well, unlike some web servers, we believe it is irresponsible to serve out random content.&amp;#160; After all, did you really intend to serve up that .mdb (access database), .passwd (password), .inc (source include) or other random files that may have landed in your web content directory?&amp;#160; We really don't know, so we error on the safe side and block all unknown extensions by default from being served.&amp;#160; To make it easy to troubleshoot, we return this special error - coded 404.3.&amp;#160; &lt;/p&gt;  &lt;p&gt;Thankfully, adding mime types is easier than ever thanks to the all-new distributed configuration option, which allows for IIS7 configuration to be stored in web.config files, along with asp.net configuration, to be deployed with your content.&amp;#160; This makes transferring IIS7 configuration from your Vista PC to your hosted server as easy as copying files!&amp;#160; Read more about this in the &lt;a href="http://learn.iis.net/page.aspx/94/delegating-administration/"&gt;Delegating Configuration&lt;/a&gt; section of &lt;a href="http://learn.IIS.net"&gt;http://learn.IIS.net&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In this post, I'll show how easy it is to add mime types to your Web server.&amp;#160; This method will work on any IIS7 web server, and it will be ignored on all non-IIS7 web servers, so it should be safe to do no matter the type of application or content.&amp;#160; Since the &amp;lt;staticContent&amp;gt; section is delegated by default, the configuration snippets below should 'just work' on all IIS7 Web sites.&amp;#160; &lt;/p&gt;  &lt;p&gt;Scenario:&amp;#160; Let's say I want serve up some h264 video and need to add the .mp4 and .m4v file types to IIS7?&amp;#160; It's as easy as:&lt;/p&gt;  &lt;p&gt;1) create (or edit) the web.config file in your site's home directory&lt;/p&gt;  &lt;p&gt;2) edit it as follows:&lt;/p&gt;  &lt;pre&gt;&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;system.webServer&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;staticContent&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;mimeMap fileExtension=&amp;quot;.mp4&amp;quot; mimeType=&amp;quot;video/mp4&amp;quot; /&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;mimeMap fileExtension=&amp;quot;.m4v&amp;quot; mimeType=&amp;quot;video/m4v&amp;quot; /&amp;gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/staticContent&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/system.webServer&amp;gt;&lt;p&gt;&amp;lt;/configuration&amp;gt; &lt;/p&gt;&lt;/pre&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Scenario 2: Let's say I want to add Silverlight-related mime types to my site/application?&amp;#160; See &lt;a href="http://learn.iis.net/page.aspx/262/silverlight/"&gt;this article&lt;/a&gt; for all the gory details, but it is as easy as:&lt;/p&gt;

&lt;p&gt;1) create (or edit) the web.config file in your site's home directory&lt;/p&gt;

&lt;p&gt;2) edit it as follows:&lt;/p&gt;

&lt;pre&gt;&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;system.webServer&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;staticContent&amp;gt;&lt;br /&gt;&lt;blockquote&gt;&lt;p&gt;     &amp;lt;mimeMap fileExtension=&amp;quot;.xaml&amp;quot; mimeType=&amp;quot;application/xaml+xml&amp;quot; /&amp;gt;&lt;br /&gt;     &amp;lt;mimeMap fileExtension=&amp;quot;.xap&amp;quot; mimeType=&amp;quot;application/x-silverlight-app&amp;quot; /&amp;gt;&lt;br /&gt;     &amp;lt;mimeMap fileExtension=&amp;quot;.xbap&amp;quot; mimeType=&amp;quot;application/x-ms-xbap&amp;quot; /&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/staticContent&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/system.webServer&amp;gt;&lt;p&gt;&amp;lt;/configuration&amp;gt; &lt;/p&gt;&lt;/pre&gt;

&lt;p&gt;Also, if you'd like a fancy UI to help you to manage mime types, IIS Manager provides a nice tool based approach.&amp;#160; Just click on the 'mime types' feature:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image_3.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="484" alt="image" src="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image_thumb_3.png" width="644" border="0" /&gt;&lt;/a&gt;&amp;#160; &lt;/p&gt;

&lt;p&gt;and then click 'add' on the Actions pane:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image_4.png"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="484" alt="image" src="http://wallpaper.iis7.org/blog/HowtoaddmimetypeswithIIS7Web.config_12DAD/image_thumb_4.png" width="644" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Whoila!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2252501" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/Administration/default.aspx">Administration</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>How to backup/restore IIS7 configuration</title><link>http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx</link><pubDate>Tue, 25 Mar 2008 03:55:07 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2252460</guid><dc:creator>bills</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2252460</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx#comments</comments><description>&lt;p&gt;Won's &lt;a href="http://blogs.iis.net/wonyoo/archive/2008/03/24/applicationhost-config-file-getting-corrupted-when-onecare-or-forefront-is-running.aspx"&gt;recent post&lt;/a&gt; on possible configuration corruption caused by OneCare/Forefront reminded me of something that every IIS7 customer should know about: how to backup and restore IIS7 configuration!&lt;/p&gt;  &lt;p&gt;No matter whether your configuration file gets corrupted, you make changes you decide to roll-back, you accidentally foo-bar your .config file or some act of terror occurs, some day you'll want to go back to a prior configuration file.&amp;#160; Thankfully, IIS7 makes this super easy.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;Backup/Restore via the command line&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Backing up IIS7 configuration is as simple as copying the \windows\system32\inetsrv\config directory (and subdirectories) into a backup directory, so you don't need anything special to do it.&amp;#160; Just include this directory in whatever your OS/content back-up plan is, or write a custom script to do it.&amp;#160; &lt;/p&gt;  &lt;p&gt;To help make managing backups easy, we've added a simple cmd-line option to AppCmd.exe that makes management of backup/restore sets easy.&amp;#160; For example, to backup configuration, run the follow command:&lt;/p&gt;  &lt;p&gt;&amp;gt; %windir%\system32\inetsrv\appcmd.exe &lt;font color="#ff0000"&gt;add&lt;/font&gt; backup &amp;quot;My Backup Name&amp;quot;&lt;/p&gt;  &lt;p&gt;to restore that backup, run this command:&lt;/p&gt;  &lt;p&gt;&amp;gt; %windir%\system32\inetsrv\appcmd.exe &lt;font color="#ff0000"&gt;restore&lt;/font&gt; backup &amp;quot;My Backup Name&amp;quot;&lt;/p&gt;  &lt;p&gt;to delete a backup, run this command:&lt;/p&gt;  &lt;p&gt;&amp;gt; %windir%\system32\inetsrv\appcmd.exe &lt;font color="#ff0000"&gt;delete&lt;/font&gt; backup &amp;quot;My Backup Name&amp;quot;&lt;/p&gt;  &lt;p&gt;Pretty easy, eh?&amp;#160; Except for the dirty little secret everyone knows...remembering to do a backup!&amp;#160; Thankfully, IIS7 comes to the rescue here.&amp;#160; Thanks to a feature called IIS7 &lt;a href="http://learn.iis.net/page.aspx/129/using-iis-7-configuration-history/"&gt;configuration history&lt;/a&gt;, IIS will automatically make history snapshots of ApplicationHost.config each time a change is detected, enabling you to easily restore to a prior version.&amp;#160; By default, IIS checks for a new version every 2 mins, and will keep 10 prior versions of the file.&amp;#160; IIS7 stores these snapshots in the %systemdrive%\inetpub\history folder by default.&amp;#160; You can change any of these settings by editing the &amp;lt;system.applicationHost/configHistory&amp;gt; section in ApplicationHost.config.&amp;#160; &lt;a href="http://learn.iis.net/page.aspx/129/using-iis-7-configuration-history/"&gt;This article&lt;/a&gt; explains the feature in great detail.&lt;/p&gt;  &lt;p&gt;IMPORTANT NOTE:&amp;#160; This feature only appears in Windows Server 2008 and Vista SP1.&amp;#160; It is not in original release version of Vista , as it was not yet finished when Vista first shipped.&amp;#160; This is one of the thousands of changes that was made to IIS7 after Vista RTM, and is one of many reasons you should install SP1 as soon as possible! &lt;/p&gt;  &lt;p&gt;How do you restore a prior snapshot?&amp;#160; Well, you could just go to the \inetpub\history\cfgHistory_NNNNNNNNNN directory and copy the applicationHost.config file into it's proper place: \windows\sytem32\inetsrv\config.&amp;#160; Or you can use the same command as above for restoring a backup to restore a configuration history file.&amp;#160; &lt;/p&gt;  &lt;p&gt;To enumerate a list of backups and configuration history files, use the following command:&lt;/p&gt;  &lt;p&gt;&amp;gt; %windir%\system32\inetsrv\appcmd.exe &lt;font color="#ff0000"&gt;list&lt;/font&gt; backup&lt;/p&gt;  &lt;p&gt;&lt;a href="http://wallpaper.iis7.org/blog/HowtobackuprestoreIIS7configuration_12621/image.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="344" alt="image" src="http://wallpaper.iis7.org/blog/HowtobackuprestoreIIS7configuration_12621/image_thumb.png" width="681" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;See how the config history files show up just like backups?&amp;#160; Use WinDiff or some other tool to figure out which configuration history you want to restore, then use AppCmd.exe restore backup command to restore it!&lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2252460" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/Administration/default.aspx">Administration</category><category domain="http://blogs.iis.net/bills/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category></item><item><title>How to enable directory browsing with IIS7 web.config</title><link>http://blogs.iis.net/bills/archive/2008/03/24/how-to-enable-directory-browsing-with-iis7-web-config.aspx</link><pubDate>Mon, 24 Mar 2008 18:32:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2249621</guid><dc:creator>bills</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2249621</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/03/24/how-to-enable-directory-browsing-with-iis7-web-config.aspx#comments</comments><description>&lt;P&gt;IIS7 includes an all-new distributed configuration option, which allows for IIS7 configuration to be stored in web.config files, along with asp.net configuration, to be deployed with your content.&amp;nbsp; This makes transferring IIS7 configuration from your Vista PC to your hosted server as easy as copying files!&amp;nbsp; Read more about this in the &lt;A href="http://learn.iis.net/page.aspx/94/delegating-administration/" mce_href="http://learn.iis.net/page.aspx/94/delegating-administration/"&gt;Delegating Configuration&lt;/A&gt; section of &lt;A href="http://learn.iis.net/" mce_href="http://learn.iis.net/"&gt;http://learn.IIS.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In this post, I'll show how easy it is to enable directory browsing for your Web site or a directory on your site.&amp;nbsp; This method will work on any IIS7 web server, and it will be ignored on all non-IIS7 web servers, so it should be safe to do no matter the type of application or content.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Scenario:&amp;nbsp; Let's say I want to enable directory browsing for a special directory on my site, how do I enable that?&amp;nbsp; It's as easy as:&lt;/P&gt;
&lt;P&gt;1) create (or edit) the web.config file in your site's home directory&lt;/P&gt;
&lt;P&gt;2) edit it as follows:&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;location path="special_directory_name_here"&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;directoryBrowse enabled="true" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/location&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;/PRE&gt;
&lt;P&gt;Note you will need to change the location path to equal the directory name you want to enable directory browsing for. If you want to enable it for the entire site, just remove the entire &amp;lt;location&amp;gt; and &amp;lt;/location&amp;gt; tags (which tell IIS7 to scope the configuration changes to just the path specified).&amp;nbsp;&amp;nbsp; Enjoy!&lt;/P&gt;
&lt;P&gt;PS:&amp;nbsp;&lt;/P&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Hi Bill&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT size=3 face=Calibri&gt;I read your blog about "How to enable directory browsing with IIS7 web.config" (&lt;/FONT&gt;&lt;A href="http://blogs.iis.net/bills/archive/2008/03/24/how-to-enable-directory-browsing-with-iis7-web-config.aspx#comments"&gt;&lt;FONT color=#0000ff size=3 face=Calibri&gt;http://blogs.iis.net/bills/archive/2008/03/24/how-to-enable-directory-browsing-with-iis7-web-config.aspx#comments&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Chris added a comment that he likes to know if it's possible to hide files from being displayed in the directory list. It's correct that you can't configure this behavior through web.config, but it works if you just set the file as "hidden" on the filesystem.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;I'm writing you because i'm not registered, so maybe you could add this information on the blog entry or in the comments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Would be nice because i didn't find this information anywhere, I figured it out by myself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;FONT size=3 face=Calibri&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Regards&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Jens&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2249621" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>How to (un)block directories with IIS7 web.config</title><link>http://blogs.iis.net/bills/archive/2008/03/23/how-to-un-block-directories-with-iis7-web-config.aspx</link><pubDate>Sun, 23 Mar 2008 18:44:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2249635</guid><dc:creator>bills</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2249635</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/03/23/how-to-un-block-directories-with-iis7-web-config.aspx#comments</comments><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;IIS7 includes an all-new distributed configuration option, which allows for IIS7 configuration to be stored in web.config files, along with asp.net configuration, to be deployed with your content.&amp;#160; This makes transferring IIS7 configuration from your Vista PC to your hosted server as easy as copying files!&amp;#160; Read more about this in the &lt;a href="http://learn.iis.net/page.aspx/94/delegating-administration/"&gt;Delegating Configuration&lt;/a&gt; section of &lt;a href="http://learn.IIS.net"&gt;http://learn.IIS.net&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;IIS7 also includes a new request filtering feature that protects your Web site by filtering requests.&amp;#160; IIS7 looks out for well known attacks and automatically rejects them.&amp;#160; You can tell IIS7 about special patterns you want to look out for, and you can block access to certain parts of your site, by simply adding new configuration to your Web.config file.&amp;#160; For more information on the request filtering feature, visit the &lt;a title="http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/" href="http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/"&gt;http://learn.iis.net/page.aspx/143/how-to-use-request-filtering/&lt;/a&gt; article.&lt;/p&gt;  &lt;p&gt;In this post, I'll show how easy it is to block or unblock sections of your site from being accessed.&amp;#160; This method will work on any IIS7 web server, and it will be ignored on all non-IIS7 web servers, so it should be safe to do no matter the type of application or content.&amp;#160; &lt;/p&gt;  &lt;p&gt;By default, IIS7 blocks access to a few well-known special directories, including &amp;quot;bin&amp;quot;, &amp;quot;App_Code&amp;quot;, &amp;quot;App_Data&amp;quot; and so forth.&amp;#160; This is because these directories often contain special code or data that is normally never accessed directly from the Web.&amp;#160; You may want to protect other directories on your site from being accessed, for example your &amp;quot;log&amp;quot; directory or &amp;quot;database&amp;quot; directory.&amp;#160; Or you may be using an application, like Lightroom, which actually requires access to one of the previous blocked directories like &amp;quot;bin&amp;quot;.&amp;#160; You can easily block or unblock access to directories by adding a bit of configuration to your web.config file.&amp;#160; &lt;/p&gt;  &lt;p&gt;Scenario:&amp;#160; Let's say I want to block the &amp;quot;log&amp;quot; directory from being accessed on my site?&amp;#160; It's as easy as:&lt;/p&gt;  &lt;p&gt;1) create (or edit) the web.config file in your site's home directory&lt;/p&gt;  &lt;p&gt;2) edit it as follows:&lt;/p&gt;  &lt;pre&gt;&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;system.webServer&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;security&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;requestFiltering&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;hiddenSegments&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;add segment=&amp;quot;log&amp;quot; /&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/hiddenSegments&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/requestFiltering&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/security&amp;gt;&lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/system.webServer&amp;gt;&lt;p&gt;&amp;lt;/configuration&amp;gt; &lt;/p&gt;&lt;/pre&gt;

&lt;p&gt;Note: if you instead want to unblock a directory like &amp;quot;bin&amp;quot;, to enable applications like Lightroom to work with IIS7, the configuration required is exactly the same as above, except for the &amp;lt;add segment=&amp;quot;log&amp;quot;/&amp;gt; directive.&amp;#160; Change it to be &amp;lt;remove segment=&amp;quot;bin&amp;quot; /&amp;gt; and IIS7 will allow access to &amp;quot;bin&amp;quot; directories on your site (Careful: if you do this on an ASP.NET site you may be unintentionally allowing access to assemblies that are normally protected)&lt;/p&gt;

&lt;p&gt;Also, if you'd like a fancy UI to help you in managing your request filtering rules, check out the new &lt;a href="http://blogs.iis.net/bills/archive/2008/03/21/new-iis7-extensions-available-for-download.aspx"&gt;IIS7 Admin Pack&lt;/a&gt; which just shipped and includes a new UI feature which makes managing this feature easy!&amp;#160; &lt;/p&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2249635" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>How to add a default document with IIS7 web.config</title><link>http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx</link><pubDate>Sat, 22 Mar 2008 12:40:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:2248098</guid><dc:creator>bills</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=2248098</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx#comments</comments><description>&lt;P&gt;IIS7 includes an all-new distributed configuration option, which allows for IIS7 configuration to be stored in web.config files, along with asp.net configuration, to be deployed with your content.&amp;nbsp; This makes transferring IIS7 configuration from your development box to your hosted server as easy as file copy!&amp;nbsp; Read more about this in the &lt;A href="http://learn.iis.net/page.aspx/94/delegating-administration/" mce_href="http://learn.iis.net/page.aspx/94/delegating-administration/"&gt;Delegating Configuration&lt;/A&gt; section of &lt;A href="http://learn.iis.net/" mce_href="http://learn.IIS.net"&gt;http://learn.IIS.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In this post, I'll show how easy it is to add or change a default document for your Web site.&amp;nbsp; This method will work on any IIS7 web server, and it will be ignored on all non-IIS7 web servers, so it should be safe to do no matter the type of application or content.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Scenario:&amp;nbsp; Let's say I want to add index.php as the default document for the new whiz-bang PHP application I just downloaded.&amp;nbsp; IIS doesn't recognize index.php as a default document, so how do I enable that?&amp;nbsp; It's as easy as:&lt;/P&gt;
&lt;P&gt;1) create a web.config file in your application directory&lt;/P&gt;
&lt;P&gt;2) edit it as follows:&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;system.webServer&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultDocument&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;files&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add value="index.php" /&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/files&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/defaultDocument&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/system.webServer&amp;gt;&lt;BR&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;/PRE&gt;
&lt;P&gt;How does this work?&amp;nbsp; IIS7 monitors web directories for the web.config file, and will notice any time a file with this name is created or changed.&amp;nbsp; It reads the configuration in the file and merges it with any parent or global configuration set at higher levels (at a site or server level).&amp;nbsp; In this case, we're telling IIS to add the "index.php" value to the list of default documents.&amp;nbsp; You can also remove an individual entry in the defaultDocument list by doing this:&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;files&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove value="index.php" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;lt;/files&amp;gt;&lt;/P&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can clear all of the inherited values in the defaultDocument list first by doing this:&lt;/P&gt;
&lt;P&gt;&amp;lt;files&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clear/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add value="index.php" /&amp;gt; &lt;BR&gt;&amp;lt;/files&amp;gt;&lt;/P&gt;
&lt;P&gt;IIS7 distributed configuration is very powerful!&amp;nbsp; Read more on &lt;A href="http://learn.iis.net/page.aspx/94/delegating-administration/" mce_href="http://learn.iis.net/page.aspx/94/delegating-administration/"&gt;http://learn.iis.net&lt;/A&gt;.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=2248098" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/IIS7/default.aspx">IIS7</category><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category><category domain="http://blogs.iis.net/bills/archive/tags/Tutorial/default.aspx">Tutorial</category></item><item><title>IIS6 Metabase Property to IIS7 Configuration Mapping</title><link>http://blogs.iis.net/bills/archive/2007/09/24/iis6-metabase-property-to-iis7-configuration-mapping.aspx</link><pubDate>Tue, 25 Sep 2007 04:50:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1924920</guid><dc:creator>bills</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.iis.net/bills/rsscomments.aspx?PostID=1924920</wfw:commentRss><comments>http://blogs.iis.net/bills/archive/2007/09/24/iis6-metabase-property-to-iis7-configuration-mapping.aspx#comments</comments><description>Here is some useful documentation I stumbled upon which may be of interest.  If you're ever wondering "where did that IIS6 metabase property go?" as you stare at the applicationHost.config or web.config file, look no further than this MSDN documentation for a complete mapping:  &lt;a href=http://msdn2.microsoft.com/en-us/library/aa347565.aspx&gt;http://msdn2.microsoft.com/en-us/library/aa347565.aspx&lt;/a&gt;
&lt;p&gt;
Note: you may need to use this document in conjunction with the schema files in \windows\system32\inetsrv\config\schema in order to know where the configuration section lives, what type it is, defaults etc. &lt;img src="http://blogs.iis.net/aggbug.aspx?PostID=1924920" width="1" height="1"&gt;</description><category domain="http://blogs.iis.net/bills/archive/tags/Developers/default.aspx">Developers</category><category domain="http://blogs.iis.net/bills/archive/tags/Administrators/default.aspx">Administrators</category><category domain="http://blogs.iis.net/bills/archive/tags/Configuration/default.aspx">Configuration</category></item></channel></rss>