client denied by server configuration: owncloud and directadmin

Posted on Mar 24, 2014

If got error with owncloud when using owncloud application (custombuild managed structure):

1
2
[Mon Mar 24 19:42:39.379283 2014] [access_compat:error] [pid 525512] [client 86.100.237.21:55665] AH01797: client denied by server configuration: /home/admin/domains/domain.tld/
private_html/owncloud/remote.php

Solution is to enable PUT requests.

need to edit:
/etc/httpd/conf/extra/httpd-directories.conf
and add PUT to these lines:

1
2
3
4
5
6
7
8
<Limit GET POST OPTIONS PROPFIND PUT>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND PUT>
                Order deny,allow
                Deny from all
        </LimitExcept>

Don’t forget to copy httpd-directories.conf to custom directory, as it will be rewrote after doing updates with directadmin!!!