AH01623 [allowmethods:error] Issue on DirectAdmin & How to Fix it

This post is for my personal reference for future use.

If you are using a VPS or a Dedicated Server and installed DirectAdmin as a Web / Server Panel, sometimes you may encounter the following error:

Sat May 02 07:27:45.728967 2020] [allowmethods:error] [pid 20266:tid XXXXXXX848] [client XXXXXXX] AH01623: client method denied by server configuration: 'PATCH' to /home/XXXXX/domains/XXXXXXX, referer: https://XXXXXXXX

This means that the server does not support a specific Request Method which in my case is a PATCH Request Method. So in order for this PATCH Request Method to work on the server that is using DirectAdmin, we need to enable it by:

  1. SSH to your server
  2. Type the following commands
cd /usr/local/directadmin/custombuild
./build set http_methods GET:HEAD:POST:PUT:DELETE:PATCH
./build rewrite_confs

DirectAdmin custombuild directive example for http_methods update

Hope this helps!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

WP Feedback

Dive straight into the feedback!
Login below and you can start commenting using your own user instantly