通过Active Directory阻止IIS7中的访问

时间:2018-08-14 21:49:20

标签: iis active-directory iis-7

在限制和允许通过活动目录组访问时,我的web.config出现了一些问题。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <location path="apps/Widget">
      <system.webServer>
      <httpRedirect enabled="true" destination="https://web.widgetwebsite.com/portal" />
	<authorization>
  		<allow roles="*"/>
  		<deny users="COMPANY\Users\External" />
	</authorization>
      </system.webServer>
   </location>
</configuration>

在我的web.config中的根目录(C:\ inetpub \ wwwroot)中。我希望限制“外部”组(COMPANY \ Users \ External)中的每个人访问https://web.widgetwebsite.com/apps/Widget的apps / Widget文件夹。

我在这里弄乱了吗? (我也确实需要重定向)

非常感谢向正确方向的推动。

0 个答案:

没有答案
相关问题