❤️ AZDIGI has officially updated to a new blog system. However, some posts may have incorrect or mismatched images. Please click the Report article button at the bottom of the post so AZDIGI can update as quickly as possible. Thank you!

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!

Share:
This article has been reviewed by AZDIGI Team

About the author

Thạch Phạm

Thạch Phạm

Đồng sáng lập và Giám đốc điều hành của AZDIGI. Có hơn 15 năm kinh nghiệm trong phổ biến kiến thức liên quan đến WordPress tại thachpham.com, phát triển website và phát triển hệ thống.

10+ years serving 80,000+ customers

Start your web project with AZDIGI