web.config is located in the root directory
1, authentication node
<system.web>
<!--Configuring the secure identity used by ASP.NET Verify the mode to identify incoming users. -->
<authentication mode="Forms">
<forms loginUrl="~/User/Login.aspx" name=".ASPXAUTH" defaultUrl ="User/Default.aspx" timeout="30" path="/"/>
</authentication>
Forms-based identity Verify the configuration site. When a non-logged-in user accesses a webpage that requires authentication, the webpage automatically jumps to the login webpage. The element loginUrl represents the name of the login web page, the name represents the cookie name
2, the authorization node
<!--Configure the authorization of the web application to control the client's access to the URL resource . -->
<authorization>
<allow users="*"/>
<deny users="?"/>
</authorization>
allow Adds a rule to the authorization rule map that allows access to resources.
deny adds an authorization rule that denies access to resources to the authorization rule map.
user="*" means that any user users="?" refers to authenticated users
Note: At runtime, the authorization module is from the most local configuration file To begin, iterate through the allow and deny elements until it finds the first access rule that fits a particular user account. The authorization module then allows or denies access to the URL resource based on whether the first access rule found is an allow or deny rule. The default authorization rule is <allow users="*"/>. Therefore, access is allowed by default unless otherwise configured.
If the web.config configuration in the root directory is too cumbersome, you can configure it to the appropriate directory, for example, the web.config file in the User directory
3. customErrors node
<customErrors mode="Off">
</customErrors>
<customErrors defaultRedirect="url"
mode="On
Server Security Settings 1. The system disk and site placement disk must be set to NTFS format for e
Today, the ASP program was deployed to iis7, and an error occurred on the server
An email address can be divided into two parts. The first part is the user name a
We know that IIS can allow up to 10 client connections in Windows 2000 Professional or Windows XP Pr
Memory failure causes the server to work abnormally
A solution to IIS memory is not enough
Upgrade from IIS6.0 to IIS7.0 date format adjustment method finishing
Mail server related knowledge popularization Transmission principle introduction
Is the blade server really not suitable for SMEs?
Actually repair disk array Raid-d volume
How to choose the best tool for your virtual infrastructure?
IIS local debugging does not recognize the IP solution
Solution to reject access to an IP site
How will cloud computing affect the Windows server environment?
Simple and applicable Google helps you become a hacker instantly
Uninstalling the "Recovery Console"
Care system, detailed Win8 enhanced version SmartScreen filter
Win10 installation problem solution summary Win10 installation problem
Web Thunder also play power saving download
Let Win XP no longer display error prompt window
Windows Authorization Management Tool: slmgr.vbs
Win10 compatibility How is win10 compatible with win7 software?
Win10 official version upgrade guide The five most troublesome answers
How to experience the full function? Detailed explanation of Win8 activation method