perl身份验证(awstats)

时间:2014-04-09 04:04:20

标签: perl authentication

我正在为我的IIS7.5使用awstats

我尝试使用表单身份验证,但它仅适用于目录(http://XXXX.com/awstats/wwwroot/cgi-bin/)。

但是,我可以直接转到http://XXXX.com/awstats/wwwroot/cgi-bin/awstats.pl?config=testsite而无需登录。

我希望人们在登录前执行此操作(awstats.pl?config=testsite)。

我不想为用户创建本地域,因为我会让很多用户在不同的子文件中使用awstats。

/ awstats中的web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

<system.web>
<authentication mode="Forms">
<forms name="SIPE_ASPXAUTH" loginUrl="~/Login.aspx" protection="All" path="/" timeout="20">
</forms>

</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>

<system.webServer>

<handlers>

<add name="Perl" path="*.pl" verb="GET,HEAD,POST" modules="CgiModule" scriptProcessor="C:\Perl64\bin\perl.exe &quot;%s&quot; %s" resourceType="Unspecified" requireAccess="Script" preCondition="bitness64" />
</handlers>


<httpErrors errorMode="Detailed" />

</system.webServer>

</configuration>

0 个答案:

没有答案