PUT HTTP requests fail on a domain on a Plesk for Windows server: HTTP Error 405 (Method Not Allowed) Print

  • 0

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 your Windows Plesk Control Panel.

  2. Open the domain's web.config file at Domains > your-domain.com > File Manager.

  3. Find the section <system.webServer> and add the following content under it:

    <system.webServer>
        <modules>
            <remove name="WebDAVModule" />
        </modules>
        <handlers>
            <remove name="WebDAV" />
        </handlers>


Was this answer helpful?

« Back