By default, the configuration of all DirectAdmin servers allows GET, HEAD, and POST requests. Additionally, you have to configure CustomBuild in DirectAdmin if your applications need to use PUT or DELETE methods in Apache or Nginx methods.
To Configure DirectAdmin’s CustomBuild for Apache Methods
1. Log in to SSH as the root user.
2. Enter and execute these commands:
./build set http_methods GET:HEAD:POST:PUT:DELETE
After running these commands, your server can now deploy DELETE and PUT functions. It is because SSH will configure CustomBuild in DirectAdmin for Apache Methods.
To disable these configurations, edit the http_methods and remove the previously added methods, then run ./build rewrite_confs again.