我有幾個文件夾要從web.config中的內容,Javascript和腳本等塊中排除。請幫我實現這一點。允許IIS 7.5通過ASP.NET管道提供靜態文件
下面是配置:
<location path="TechDocs">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="Scripts">
<system.web>
<authentication mode="None" />
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="Content">
<system.web>
<authentication mode="None" />
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="Javascript">
<system.web>
<authentication mode="None" />
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
你現在正在爲這些獲得401 – Saravanan 2015-04-03 03:04:01
是的..401未經授權 – Krish 2015-04-03 16:48:03