DirectAdmin enable PUT and DELETE requests

Recently I realised that my DirectAdmin hosting doesn’t support PUT and DELETE requests by default. Apparently it’s necessary to make requests to my recent PrestaShop API adventures. As usually quick and dirty solution below. All you need to do, just to drop it to custom configuration.

admin » Custom Httpd Configurations

Code:

<Limit GET POST PUT DELETE OPTIONS PROPFIND>
 Order allow,deny
 Allow from all
</Limit>
<LimitExcept GET POST PUT DELETE OPTIONS PROPFIND>
 Order deny,allow
 Deny from all
</LimitExcept>

Visual reference:

Or there is another way. You can use code below and use it as on image:

<directory home="" admin="" domains="" inter-idea.pl="" private_html="">
    AllowMethods GET HEAD POST OPTIONS DELETE PUT
</directory>