Thursday, September 5, 2013

Apache: couldn't perform authentication. authtype not set

I had this error in my /var/log/apache2/error.log file:

configuration error:  couldn't perform authentication. AuthType not set!: /~baldho/owncloud

Since the problematic path is a user directory, I added a Satisfy Any option to my Directory directive in my /etc/apache2/mods-enabled/userdir.conf file, like so:

<Directory /home/*/public_html>
    [...]
    Satisfy Any
    [...]
</Directory>


And the problem went away.

Apache: (403 Forbidden) in response to PROPFIND request

This error would be found in /var/log/apache2/error.log

If that happens in a user public_html, open the file /etc/apache2/mods-enabled/userdir.conf and make sure PROPFIND is included in the permissions:

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

The same Limit tag could be found or added in your /etc/apache2/sites-enabled/default file for a general effect.

This did the trick for me on my Debian system.