- Plesk for Windows
Unable to use DELETE, PUT or PATCH HTTP verbs with .php files or Web API. The following error message appears in a browser:
PLESK_INFO: 405 - HTTP verb used to access this page is not allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access
Specific HTTP verbs are not registered for a particular handler/file extension.
Note: This guide is intended for Plesk administrators. If you are a domain owner, please contact your service provider for assistance with configuration of HTTP methods.
Add DELETE, PUT, PATCH methods to a handler:
Connect to a Plesk server via RDP.
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
In IIS Manager, expand SERVERNAME > Sites > double-click on a required domain.
In sites dashboard, click Handler Mappings > double click on PHP-php (or ExtensionlessUrl-Integrated-4.0 if this is Web API) > click Request Restrictions > switch to the Verbs tab.
Add required HTTP verbs to the verbs field and click OK.