How to remove WebDAV module from IIS?

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

    This response is good. Basically put it in the Web.config. This is what @shiitake is doing.

    I've beeen using that solution for a while but its annoying because I have to maintain it in my Web.config when the rest of the developers don't. So I removed it from IIS all together.

    1. Open IIS and go to the site in question.
    2. Click on "Handler Mappings"
    3. Find the handler named "WebDAV"
    4. Select it and Remove it

    On first try I got, Error: Cannot write configuration file due to insufficient permissions. Full disclosure, my coworker fixed it for me and sent the following instructions. (Maybe someone can edit and clarify the steps.)

    1. Stop the site
    2. Add yourself to Security Group
    3. Remove the handler.

提交回复
热议问题