How to remove WebDAV module from IIS?

前端 未结 5 1488
长情又很酷
长情又很酷 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:14

    sometimes I just can't believe that the same people who worked on the great .Net Core have worked on IIS and all this madness to say the least. I kept searching and trying to figure out what was the issue, furthermore I tried the best I can to log the error 405 Method not allowed but to no avail. I didn't want to alter the web.config file and didn't want to remove this pointless WebDavModule thingy because my site is hosted along other sites other people working on so I didn't want to ruin the day for anyone else.

    Now, this emotional introduction aside, I managed to make it work via simple IIS Configuration steps. Imagine a figurative sarcastically double-quotes mark surrounding the word simple.

    So here is what you can do:

    1. Open IIS manager
    2. Go to the site level you want to enable PUT, DELETE verbs for.
    3. From Handler Mappings click on WebDav and then click Edit
    4. Click on Request Restrictions and from there navigate to Verbs tab
    5. Chose All verbs and finally click OK. I swear this UI is more confusing than a whole map for the human brain neurons connections.
    6. Restart the Web Site because I did that just-in-case because I had enough headache for the following few months.

提交回复
热议问题