티스토리 뷰

EN/CentOS 5

CentOS 5 WEB Server Configure WebDAV

ServerWorld 2016.06.01 21:45

CentOS 5 WEB Server Configure WebDAV


Configure WebDAV

 

This is the example of setting WebDAV with SSL connection.



1. For example, Make a directory [webdav] 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


Alias /share /home/security

<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>



[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 ]


※ Next manual



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

'EN > CentOS 5' 카테고리의 다른 글

CentOS 5 WEB Server Install SpeedyCGI  (0) 2016.06.04
CentOS 5 WEB Server Use PHP APC  (0) 2016.06.04
CentOS 5 WEB Server Configure WebDAV  (0) 2016.06.01
CentOS 5 WEB Server Virtual Hostings  (0) 2016.06.01
CentOS 5 WEB Server Configure SSL  (0) 2016.06.01
CentOS 5 WEB Server Enable userdir  (0) 2016.06.01
댓글