Symptom: HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
analyze:
Because the account used by the user for anonymous access (the default is IUSR_machine name) is disabled, or the user does not have permission to access the computer, the user will be unable to access.
Solution:
(1) Check whether the anonymous account in the site security settings in IIS Manager is disabled. If so, please try to enable it using the following methods:
Control Panel->Administrative Tools->Computer Management->Local Users and Groups, enable the IUSR_machine name account. If it is not resolved, continue to the next step.
(2) Check the local security policy to see if the default anonymous access account of the site in IIS Manager or the group to which it belongs has permission to access the server through the network. If not, try to grant permissions using the following steps:
Start->Programs->Administrative Tools->Local Security Policy->Security Policy->Local Policy->User Rights Assignment, double-click "Access this computer from the network" and add the IIS default user or the group to which it belongs.
Note: Generally, custom IIS default anonymous access accounts belong to groups. For security reasons, please follow this rule if there is no special need.
Symptom: HTTP Error 401.2 - Unauthorized: Access is denied due to server configuration.
Reason: Anonymous authentication solution turned off:
Run inetmgr, open site properties->Directory Security->Authentication and Access Control->check "Enable anonymous access", enter the user name, or click "Browse" to select a legitimate user, and enter the password twice to confirm.
Symptom: HTTP Error 401.3 - Unauthorized: Access is denied due to the ACL set on the requested resource.
Reason: IIS anonymous users generally belong to the Guests group, and we generally allocate the permissions of the hard disk where the website is stored only to the administrators group. At this time, according to the inheritance principle, the website folder can only be accessed by members of the administrators group, causing IIS anonymous users to access the administrators group. The file has insufficient NTFS permissions, rendering the page inaccessible.
Solution:
Give IIS anonymous users permission to access the website folder. Method: enter the security options of the folder, add IIS anonymous users, and grant corresponding permissions, usually read and write.