WebDAV with SSL (CentOS6)
Перейти к навигации
Перейти к поиску
[root@www ~]# mkdir /home/webdav
[root@www ~]# chown apache. /home/webdav
[root@www ~]# chmod 770 /home/webdav
[root@www ~]# vi /etc/httpd/conf.d/webdav.conf
Alias /share /home/webdav
<Location /share>
DAV On
SSLRequireSSL
Options None
AuthType Basic
AuthName WebDAV
AuthUserFile /etc/httpd/conf/.htpasswd
<LimitExcept GET OPTIONS>
Order allow,deny
Allow from 10.0.0.# IP address you permit to access
Require valid-user
</LimitExcept>
</Location>
# add a user ( create a new file with "-c" ⇒ only add "-c" at the first time. Do not add it 2nd time to add users. )
[root@www ~]# htpasswd -c /etc/httpd/conf/.htpasswd cent
New password: # set password
Re-type new password: # confirm
Adding password for user cent
[root@www ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]