Skip to content

Commit

Permalink
Fix IIS config sample by changing from HTML to XML
Browse files Browse the repository at this point in the history
  • Loading branch information
omccully committed Apr 21, 2024
1 parent 0b68e35 commit c407068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ This example shows how to unlock the section. Since it is locked at the applicat

There are cases where it is useful to unlock sections for a specific path only and to keep them locked for all other paths. The following example builds atop the previous one, and shows how to unlock the section for two specific sites only; for all other sites it will remain locked.

[!code-html[Main](deep-dive-into-iis-configuration-with-iis-7-and-iis-8/samples/sample8.html)]
[!code-xml[Main](deep-dive-into-iis-configuration-with-iis-7-and-iis-8/samples/sample8.xml)]

For each "exception" path that needs unlocking, there needs to be a different location tag.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</system.webServer>
</location>

<location path="TrustedSiteTwo" overrideMode="Allow"><span style="font-family:Calibri; font-size:11pt">
<location path="TrustedSiteTwo" overrideMode="Allow">
<system.webServer>
<modules/>
</system.webServer>
Expand Down

0 comments on commit c407068

Please sign in to comment.