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
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:
PUT, DELETE
verbs for.Handler Mappings
click on WebDav
and then click Edit
Request Restrictions
and from there navigate to Verbs
tabAll verbs
and finally click OK. I swear this UI is more confusing than a whole map for the human brain neurons connections.Web Site
because I did that just-in-case because I had enough headache for the following few months.