User Tools

Site Tools


How To Enable/Disable Insecure Apache Methods in DirectAdmin

DirectAdmin servers are configured to allow GET, HEAD, and POST requests by default. If your applications require PUT or DELETE methods in Apache or Nginx and you are using DirectAdmin, you will need to configure DirectAdmin's CustomBuild for these methods. To do so, execute the following commands as the root user via SSH:

  cd /usr/local/directadmin/custombuild
  ./build set http_methods GET:HEAD:POST:PUT:DELETE
  ./build rewrite_confs

DELETE and PUT will now work with your DirectAdmin server.

If you find that you need to disable these at a later date, just edit the http_methods again to remove the added methods and ./build rewrite_confs again.

control-panels/directadmin/how-to-enable-disable-insecure-apache-methods.txt · Last modified: 2020/06/01 11:04 by Karson N.