<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /web/dev/
ServerName webdav.yemaosheng.com
<Location />
Dav On
#加下面两行
SetHandler default-handler
ForceType text/plain
Options Indexes FollowSymlinks Includes
Order Allow,Deny
Allow from all
AuthType Basic
AuthName "webdav"
AuthUserFile "/etc/apache2/davuser.passwd"
AuthBasicProvider file
<LimitExcept PUT POST DELETE MOVE OPTIONS>
Require user username
</LimitExcept>
</Location>
</VirtualHost>
htpasswd /etc/apache2/davuser.passwd username; |
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /web/dev/
ServerName webdav.yemaosheng.com
<Location />
Dav On
#加下面两行
SetHandler default-handler
ForceType text/plain
Options Indexes FollowSymlinks Includes
Order Allow,Deny
Allow from all
AuthType Basic
AuthName "webdav"
AuthUserFile "/etc/apache2/davuser.passwd"
AuthBasicProvider file
<LimitExcept PUT POST DELETE MOVE OPTIONS>
Require user username
</LimitExcept>
</Location>
</VirtualHost>
htpasswd /etc/apache2/davuser.passwd username;
Related Posts