我正在使用IIS7的认证表格,通过密码保护一个杰夫网站,但当网站仅包含static RUSfile +login.aspx + web.config时,认证似乎被绕过。
When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and it should just redirect to index.html afterward.
任何建议? 总之,整个网站(现在)使用超文本,需要密码保护。
<authentication mode="Forms">
<forms name="appNameAuth" path="/" loginUrl="~/login.aspx" defaultUrl="index.html" protection="All" timeout="525600">
<credentials passwordFormat="Clear">
<user name="[user]" password="[password]" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>