httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ezra Taylor <ezra.tay...@gmail.com>
Subject Re: [users@httpd] Question about mod_dav in Apache2(Centos)
Date Sat, 19 Mar 2011 05:24:23 GMT
Matt:
          I've been testing DAV with DAVfs for a little while now.  Use my
config below as you see fit.  The below config is just a template I used
from compiling Apache2 from source.  Lastly, the config below is a file
named httpd-dav.conf.  Enjoy.



DavLockDB "/opt/apache2/var/DavLock"

Alias /uploads "/opt/apache2/uploads"

<Directory "/opt/apache2/uploads">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType Digest
    AuthName DAV-upload

    # You can use the htdigest program to create the password database:
    #   htdigest -c "/opt/apache2/user.passwd" DAV-upload admin
    AuthUserFile "/opt/apache2/user.passwd"
    AuthDigestProvider file

    # Allow universal read-access, but writes are restricted
    # to the admin user.
    <LimitExcept GET OPTIONS>
        require user admin
    </LimitExcept>
</Directory>








2011/3/10 zMatthew <mathewzhao@hotmail.com>

>  I configured Apache2 to allow "PUT" method on a directory,
>
>    -      /usr/local/apache/DAVLock is writeable by Apache
>
>
>    -     "LoadModule dav_module modules/mod_dav.so"  is uncommented
>    -     "LoadModule dav_module modules/mod_dav_fs.so" is uncommented
>
>
> I just added  2 lines in default httpd.conf
>
> *DAVLockDB /usr/local/apache/DAVLock
> *
> <Directory />
>     *DAV On*
>     ....
>
> However, PUT method still isn't seen via " OPTIONS / HTTP/1.0"
> Could someone give me a hand? thanks
>
>



-- 
Ezra Taylor

Mime
View raw message