Question: PUT HTTP requests fail on a domain on a Plesk for Windows server: HTTP Error 405 (Method Not Allowed)
Applicable to:
Plesk for Windows
Symptoms
When using a PUT HTTP method in an application, one of the following errors is shown:
405 - HTTP verb used to access this page is not allowed.
HTTP Error 405.0 - Method Not Allowed
Cause
The WebDAV handler conflicts with PHP/.NET Core handler.
Resolution
Disable the WebDAV module and handler and its headers from the website configuration:
1.Log in to Plesk.
2.Open the domain's web.config file at Domains > example.com > File Manager.
3.Find the section <system.webServer> and add the following content under it:
<modules>
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
</handlers>