티스토리 뷰

OpenSUSE 11 Apache2 WebDAV Settings


WebDAV Settings

 

Here is the example to configure WebDAV with SSL connection.


1. Configure SSL Settings, refer to here.


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


www:~ # a2enmod dav 

www:~ # a2enmod dav_fs 

www:~ # a2enmod dav_lock 


www:~ # mkdir /home/webdav 

www:~ # chown wwwrun. /home/webdav 

www:~ # chmod 770 /home/webdav 


www:~ # vi /etc/apache2/conf.d/webdav.conf

# create new

DavLockDB "/tmp/DavLock"

Alias /webdav /home/webdav

<Location /webdav>

    DAV On

    SSLRequireSSL

    Options None

    AuthType Basic

    AuthName WebDAV

    AuthUserFile /etc/apache2/.htpasswd

    <RequireAny>

        Require method GET POST OPTIONS

        Require valid-user

    </RequireAny>

</Location>


# add a user : create a new file with "-c" (add the "-c" option only for the initial registration)

www:~ # htpasswd2 -c /etc/apache2/.htpasswd suse 

New password:     # set password

Re-type new password: 

Adding password for user suse

www:~ # /etc/init.d/apache2 restart 

저작자 표시 비영리 변경 금지
신고

'EN > OpenSUSE 11' 카테고리의 다른 글

OpenSUSE 11 MySQL Replication  (0) 2016.05.10
OpenSUSE 11 MySQL Install MySQL  (0) 2016.05.10
OpenSUSE 11 Apache2 WebDAV Settings  (0) 2016.05.08
OpenSUSE 11 Apache2 Basic Authentication  (0) 2016.05.08
OpenSUSE 11 Apache2 SSL Settings  (0) 2016.05.08
OpenSUSE 11 Apache2 Virtual Hostings  (0) 2016.05.08
댓글