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

前端 未结 10 1103
说谎
说谎 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:46

    If you only want to let unauthenticated users to access default.aspx you can use

      
        
          
            
          
        
      
    

    before and set that page as default in your web server.
    In Visual Studio you can select the page and "Set As Start Page".

    If you want to allow access to all the files in the root you have to create folders where you put your pages which need to be accessed by authenticated users.

    You can create a Secure folder where you can put all your protected pages and change your web.config this way:

      
        
          
            
          
        
      
    

    removing

        
            
        
    

提交回复
热议问题