Configuring subdirectory authentication mode in applications hosted under root site

前端 未结 5 1349
甜味超标
甜味超标 2021-02-12 17:50

On my local machine, I work on multiple web sites and run them under IIS under a \"Default\" web site. That way I can access the sites through this type of URL: http://localhos

5条回答
  •  滥情空心
    2021-02-12 18:11

    You need to enable Windows authentication at the application level in the Web.config, then further define authorization at the folder level, allowing all users at the root and denying all unauthenticated for the internal folder.

    In IIS, make sure both Anonymous Authentication and Windows Authentication are enabled for the application. Then, modify your Web.config as follows:

    
      
          
          
            
          
      
      
        
          
            
          
        
      
    
    

提交回复
热议问题