xampp 1.77配置Webdav

简介:

一、修改下面3个配置文件后,重新启动apache服务器,就可以在Windows通过“映射网络驱动器”登陆了。


1. 去掉下面3行配置的注释

=========================
httpd.conf
=========================
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so

# Distributed authoring and versioning (WebDAV)
# Attention! WEB_DAV is a security risk without a new userspecific configuration for a secure authentifcation 
Include "conf/extra/httpd-dav.conf"


2. 删除下面的行,或者配置相应的访问规则

=========================
extra/httpd-xampp.conf
=========================

#
# New XAMPP security concept
#

# Close XAMPP security section here 
<LocationMatch "^/(?i:(?:security))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Deny from all
    Allow from ::1 127.0.0.0/8 
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>


3. 在<LimitExcept GET OPTIONS>加上PROPFIND,如下:

=========================
extra/httpd-dav.conf
=========================
<Directory "C:/xampp/webdav">
    Dav On

    Order Allow,Deny
    Allow from all

    AuthType Digest
    AuthName "XAMPP with WebDAV"

    # You can use the htdigest program to create the password database:
    #   htdigest.exe -c "\xampp\security\webdav.htpasswd" "XAMPP with WebDAV" wampp
    AuthUserFile "C:/xampp/security/webdav.htpasswd"
    AuthDigestProvider file

    # Allow universal read-access, but writes are restricted
    # to the admin user.
    <LimitExcept GET PROPFIND OPTIONS>
        require valid-user
    </LimitExcept>
</Directory>


二、创建用户

默认用户:xampp-dav-unsecure

默认密码:ppmax2011

创建新用户命令:
htdigest.exe -c "c:\xampp\security\webdav.htpasswd" "XAMPP with WebDAV" username



三、进一步可以通过编辑httpd-dav.conf配置文件进行权限设置









本文转自 h2appy  51CTO博客,原文链接:http://blog.51cto.com/h2appy/773340,如需转载请自行联系原作者
目录
相关文章
|
5月前
|
存储 安全 网络协议
WebDAV
WebDAV【2月更文挑战第28天】
573 1
|
网络安全
IIS配置FTP
IIS配置FTP过程
268 0
IIS配置FTP
|
移动开发 应用服务中间件 Linux
windows+nginx配置站点目录发生500的一个问题
windows+nginx配置站点目录发生500的一个问题
291 0
windows+nginx配置站点目录发生500的一个问题
|
PHP
PHP配置phpstorm+xampp教程
第一次学PHP的话需要配置环境,这里用到的软件是PhpStorm和集成环境Xampp Phpstorm 这款软件大家直接官网下就可以了,破解的在另找方法,我这里用到的是学生教育全家桶。 Xampp 这款软件是个集成软件也直接下载就好,当然在做这个配置的时候你肯定已经有了软件。所以这里也不多说了,没有软件的私聊博主。
655 0
PHP配置phpstorm+xampp教程
|
存储 Windows
Confluence 6 的 WebDAV 客户端整合介绍
WebDAV 允许用户通过一个 WebDAV 客户端来访问 Confluence。例如,微软 Windows 的 'My Network Places'。
1624 0
下一篇
无影云桌面