How to remove WebDAV module from IIS?

前端 未结 5 1478
长情又很酷
长情又很酷 2021-01-12 13:27

I am struggling for days to enable PUT and DELETE request for my PHP app at MS Azure. Some answers I found suggest to remove the WebDAV module from IIS.

How would I

5条回答
  •  北海茫月
    2021-01-12 14:30

    I am hosting a PHP application in Azure App Services and I was able to solve this problem by manually creating a file called web.config and adding it to the root directory of my web application.

    Here is the entire content of that file.

    
    
      
        
        
            
                
                    
                    
                    
                    
                
            
        
        
          
        
        
          
          
          
          
          
          
          
          
          
        
      
    
    

    You'll notice in the handlers section it references PHP56_via_FastCGI. This is specific to PHP 5.6. If you are using a different version of PHP you will need to update the name and file path to reflect that version.

提交回复
热议问题