IIS - 401.3 - Unauthorized

前端 未结 10 1699
深忆病人
深忆病人 2020-12-12 14:44

I am trying to get started with using IIS. I created a new site on IIS Manager, mapped it to a folder on my file system and added index.html to the folder. I have set the po

10条回答
  •  渐次进展
    2020-12-12 15:16

    Here is what worked for me.

    1. Set the app pool identity to an account that can be assigned permissions to a folder.
    2. Ensure the source directory and all related files have been granted read rights to the files to the account assigned to the app pool identity property
    3. In IIS, at the server root node, set anonymous user to inherit from app pool identity. (This was the part I struggled with)

    To set the server anonymous to inherit from the app pool identity do the following..

    • Open IIS Manager (inetmgr)
    • In the left-hand pane select the root node (server host name)
    • In the middle pane open the 'Authentication' applet
    • Highlight 'Anonymous Authentication'
    • In the right-hand pane select 'Edit...' (a dialog box should open)
    • select 'Application pool identity'

提交回复
热议问题