IIS, denying access to static files; What is wrong with this example?

前端 未结 1 653
栀梦
栀梦 2021-01-27 02:14

I am trying to get the simplest example of allowing access by default, denying access unless authenticated to specific directories in IIS, to work. When you Google around, every

1条回答
  •  终归单人心
    2021-01-27 02:37

    it doesn't like the path "~/pages" . The following works for me

    
        
            
            
            
        
        
            
        
    
        
        
            
                
                    
                
            
        
    
    

    0 讨论(0)
提交回复
热议问题