Configure WebDAV2009/06/14 |
This is the example to configure WebDAV. |
|
[1] | The example shows to configure that create a directory which requires authentication and SSL connection. |
[root@www1 ~]# mkdir /home/security [root@www1 ~]# chown apache. /home/security [root@www1 ~]# chmod 770 /home/security [root@www1 ~]# vi /etc/httpd/conf.d/webdav.conf
Alias /share /home/security <Location /share> DAV On SSLRequireSSL Options None AuthType Basic AuthName WebDAV AuthUserFile /etc/httpd/conf/.htpasswd <Limit GET POST OPTIONS> Order allow,deny Allow from 192.168.0. # IP address you allow Require valid-user </Limit> </Location> [root@www1 ~]# htpasswd -c /etc/httpd/conf/.htpasswd fedora New password: # set password Re-type new password: Adding password for user fedora [root@www1 ~]# /etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] |
[2] | Configure Client PC. This example is on Windows XP. Open 'My Network Places' and Click 'Add a network place'. |
[3] | Click 'Next' |
[4] | Click 'Next' |
[5] | Specify network address of shared folder. |
[6] | Security alert is shown like below because I made Certification File for SSL by myself. it's no ploblem. Click 'Yes' and Proceed. |
[7] | Input user name and password you set. |
[8] | Input any name of shared folder you like. |
[9] | Click 'Finish' and go next. |
[10] | It could access to shared folder. |
Sponsored Link |