티스토리 뷰

Fedora 18 WEB Server Configure WebDAV


 

Here is the example to configure WebDAV.



1. For example, Make a directory [security] and it makes possible to connect to WebDAV directory only by SSL.

[root@www ~]# mkdir /home/security 


[root@www ~]# chown apache. /home/security 


[root@www ~]# chmod 770 /home/security 


[root@www ~]# vi /etc/httpd/conf.d/webdav.conf

DavLockDB "/tmp/DavLock"

Alias /share /home/security

<Location /share>

    DAV On

    SSLRequireSSL

    Options None

    AuthType Basic

    AuthName WebDAV

    AuthUserFile /etc/httpd/conf/.htpasswd

    <RequireAny>

        Require method GET POST OPTIONS

        Require valid-user

    </RequireAny>

</Location>


[root@www ~]# htpasswd -c /etc/httpd/conf/.htpasswd fedora 

New password: # set password

Re-type new password: # confirm

Adding password for user fedora


[root@www ~]# systemctl restart httpd.service 

댓글