KNOWNHOST WIKI

User Tools

Site Tools


control-panels:directadmin:how-to-enable-disable-insecure-apache-methods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

control-panels:directadmin:how-to-enable-disable-insecure-apache-methods [2019/09/30 09:35]
Karson N. created
control-panels:directadmin:how-to-enable-disable-insecure-apache-methods [2020/06/01 11:04] (current)
Karson N.
Line 1: Line 1:
 ====== How To Enable/Disable Insecure Apache Methods in DirectAdmin ====== ====== 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: 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:
 +<code>
   cd /usr/local/directadmin/custombuild   cd /usr/local/directadmin/custombuild
   ./build set http_methods GET:HEAD:POST:PUT:DELETE   ./build set http_methods GET:HEAD:POST:PUT:DELETE
   ./build rewrite_confs   ./build rewrite_confs
 +</code>
  
 DELETE and PUT will now work with your DirectAdmin server.  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. +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.