By default, DirectAdmin only allows using the transport method in PHP, which is POST, GET, so if you need to use other methods like PUT, HEAD or DELETE, you will get a 405 error if you use Apache as a webserver, or a net error::ERR_EMPTY_RESPONSE on Google Chrome browser if using nginx_apache setting.
To allow all methods to be used, execute the following commands:
cd /usr/local/directadmin/custombuild
./build set http_methods GET:HEAD:POST:PUT:DELETE:PATCH
./build rewrite_confs
Wishing you success!