How to use webdav and user dir in the same time in the same section ?

Posted by Louis on Server Fault See other posts from Server Fault or by Louis
Published on 2011-02-02T08:06:06Z Indexed on 2011/02/05 7:27 UTC
Read the original article Hit count: 511

Filed under:
|
|

Dear community, i would like to mount trough webdav my https://myserver/~user_account but not https://myserver/.

What i am doing now is :

    <IfModule mod_userdir.c>
        UserDir public_html
        UserDir disabled root


        <Directory /banonymous/data/home/*/public_html>
               DAV On
               AllowOverride FileInfo Limit AuthConfig
               Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
                <Limit GET POST OPTIONS>
                        Order allow,deny
                        Allow from all
                </Limit>
                <LimitExcept GET POST OPTIONS>
                        Order deny,allow
                        Deny from all
                </LimitExcept>
        </Directory>

</IfModule>

and i am setting the authentification in the .htaccess of eache user.

AuthType Basic
AuthName "Password Required"
AuthUserFile /etc/apache2/users/htpasswd
Require User geeky

It does not work.

Is there someone who can tell me if it is possible ? and if it is how to do it.

My dream would have been to put the Dav On in the .htaccess.

© Server Fault or respective owner

Related posts about apache

Related posts about mod-userdir