나는 Azure - example.azurewebsites.net에 웹 사이트를 가지고 있습니다. 기본 페이지를 index.html로 구성했습니다. 이제 웹 사이트는 index.html과 login.html을 제외한 인증되지 않은 웹 사이트 사용자를 거부한다고 가정합니다. 내 코드의양식 인증의 사용자가 하늘색 웹 사이트에서 작동하지 않을 수 있음
:
<system.webServer>
<defaultDocument>
<files>
<clear/>
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
<location path="index.html">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<system.web>
<authentication mode="Forms">
<forms loginUrl="login.html" defaultUrl="~/" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
example.azurewebsites.net/index.html -이 작동합니다. example.azurewebsites.net -이 작업은 login.html로 리디렉션되지 않습니다. 그러나 그들은 같은 것으로되어 있습니다. 인증없이 example.azurewebsites.net은 index.html로 리디렉션됩니다.
어디서 잘못 되었나요?
감사합니다. index.html이 실제로 기본 문서로 지정됩니다. 사실, 폼 인증을 제거하면 example.azurewebsites.net이 index.html로 리디렉션됩니다. 문제는 양식 인증에만 있습니다. – Dazhush