web.config位置路径权限问题
我有一个受限制的文件夹,仅适用于登录用户。所以我写了这些行:
<location path="ABC">
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</location>
但是,有一个文件我不想对其施加任何限制。我应该在位置标签中配置哪些设置?
请不要告诉我将该特定文件移出文件夹,因为这是不可能的,因为它在很多地方被引用,而且我不想弄乱。
I have a folder that is restricted and only for logged in user. So I wrote these lines:
<location path="ABC">
<system.web>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
</system.web>
</location>
However there is a single file on which I do not want to put any restrictions. What settings should I configure in location tag?
Please don't tell me to move that particular file out of the folder because that is not possible because it is being referenced at many places and I don't want to get messed up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试添加您不希望受到限制的页面,如下所示:
Try adding the page you want no restrictions on, like this: