Unable to use DELETE, PUT or PATCH HTTP verbs with .php files or Web API: 405 - HTTP verb used to access this page is not allowed

Follow

Comments

4 comments

  • Avatar
    Adrian Schnell (Edited )

    how to use this on an ubuntu server?

     

    I already enabled the apache module "allowmethods" and added 

    <Location "/">
    AllowMethods GET POST OPTIONS DELETE PUT
    Require all granted
    </Location>

     

    to my .htaccess. now I'm getting a HTTP 500

    0
    Comment actions Permalink
  • Avatar
    Nick Plekhov

    Hello @Adrian Schnell.
    As I can see you have submitted a ticket to Plesk Technical Support in regards to the issue mentioned.
    A reply was sent to you already. 

    0
    Comment actions Permalink
  • Avatar
    Alon Berman

    Thank you! This was my issue however there I needed to disable WebDAV implicitly in the web.config even though it was not enabled!

    <modules>
        <remove name="WebDAVModule"/>
    </modules>
    <handlers accessPolicy="Read, Execute, Script">
        <remove name="WebDAV" />
    </handlers>

    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hello @Alon Berman,

    Yes, seems in your particular case there was a conflict between WebDAV and .NET Core IIS handlers

    Glad to see that you figured it out!

    Suppose others can find this solution useful!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request