How to specify root (/) location in web.config?

前端 未结 10 1116
说谎
说谎 2020-12-08 06:22

How does one specify root location in web.config to allow unauthenticated users access it?

The root location is served by default.aspx, but users normally don\'t see

10条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 06:38

    To specify root directory you have to set it outside the location block.

     
      
        
          
        
      
    
    

    and then secure your other folder using location block

    
        
            
                
            
        
    
    

提交回复
热议问题