Created
April 8, 2015 16:53
-
-
Save kdarty/e96050885ed1e081425d to your computer and use it in GitHub Desktop.
Prevent web.config Inheritance from Root Web Applications (for Virtual Path Applications)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<!-- Disable Inheritance --> | |
<location path="." inheritInChildApplications="false"> | |
<system.web> | |
<compilation debug="false" /> | |
<!-- other configuration attributes --> | |
</system.web> | |
</location> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Article Reference:
http://www.jaylee.org/post/2008/03/Prevent-ASPNET-webconfig-inheritance-and-inheritInChildApplications-attribute.aspx
Found from Stackoverflow discussion:
http://stackoverflow.com/questions/2045174/do-virtual-directories-in-shared-hosting-conflict-with-stuff-in-wwwroot
Saving here for handy reference.