❤️ 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!
You might also like
- Setup reverse-proxy NGINX-Apache Directadmin
- Fix Fatal error: PCRE is not compiled with UTF-8 support on DirectAdmin
- [Fix] [Fix] Invalid command UNIT_PROXY Apache 2.4.48 DirectAdmin
- Fix Roundcube Database Error on DirectAdmin
- Upgrade the Nginx version on DirectAdmin
- How to switch webserver to Apache on DirectAdmin
About the author
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.