How to disabled method patch in ispconfig

Discussion in 'Installation/Configuration' started by JULINT, Nov 15, 2024.

  1. JULINT

    JULINT Member

    Hi ,

    I need step by step how to disable method PATCH in ispconfig,
    please guide me how to do it ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I have no idea what you are talking about. Please explain what you mean.
     
  3. JULINT

    JULINT Member

    in REQUEST METHOD to server, we have POST , GET , PATCH , i need to disable this request method PATCH
     
  4. JULINT

    JULINT Member

    Hi Till,

    GET, POST, PUT, PATCH, and DELETE are the five most common HTTP methods for retrieving from and sending data to a server.

    i need to disabled method PATCH..
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, so the question is not about ISPConfig as the headline suggests, but about the web server, which is Apache or Nginx. Do you use Apache or Nginx?
     
  6. JULINT

    JULINT Member

    Hi Till,
    i am using apache
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you can do this by creating a .htaccess file in the web directory of the site and putting this inside that file:

    Code:
    <Limit PATCH>
        Require all denied
    </Limit>
    Alternatively, you can put this in the apache directives field on the options tab of the website in ISPConfig:

    Code:
    <Directory "{DOCROOT_CLIENT}">
        <Limit PATCH>
            Require all denied
        </Limit>
    </Directory>
     
  8. JULINT

    JULINT Member

    Hi Till,
    thanks for your quick response.. i will try it using apache directives
     

Share This Page