Apache -- config WebDAV

Source: Internet
Author: User

I need to configure WebDAV on Apache, read the official Apache documentation, and search for multiple sources of information. It took me several hours to complete the configuration and record the configuration process as follows.

Enviroment

Web server: Windows XP Professional Service pack2, Apache 2.2
Client: Windows XP Professional Service pack2, IE6

Config File
Note that the highlighted parts are highlighted in red.

------------- Httpd. conf ------------------------
#...
Loadmodule dav_module modules/mod_dav.so
Loadmodule dav_fs_module modules/mod_dav_fs.so
#...
# Distributed Authoring and Versioning (webDAV)
Include CONF/extra/httpd-dav.conf
#...

------------ Httpd-dav.conf --------------------------
#
# Distributed Authoring and Versioning (webDAV)
#
# Required modules: mod_dav, mod_dav_fs, mod_setenvif, mod_alias
# Mod_auth_digest, mod_authn_file
#

# The following example gives Dav write access to a directory called
# "Uploads" under the serverroot directory.
#
# The user/group specified in httpd. conf needs to have write permissions
# On the directory where the davlockdb is placed and on any directory where
# "Dav on" is specified.

Davlockdb "D:/Apache Software Foundation/apache2.2/davlock"

Alias/load "D:/Apache Software Foundation/apache2.2/load"

<Directory "D:/Apache Software Foundation/apache2.2/load">
Dav on

Order allow, deny
Allow from all

Authtype basic
Authname Load
# You can use the htdigest program to create the Password Database
Authuserfile "D:/Apache Software Foundation/apache2.2/davpwd/user. pwd"

# allow universal read-access, but writes are restricted
# To the admin user.
# The limit%t must have PROPFIND privilege
PROPFIND Options>
# the username format shocould be usename @ yourdomain
require user dav@MyDomain.com

#
# The following directives disable redirects on non-GET requests
# A directory that does not include the trailing slash. This fixes
# Problem with several clients that do not appropriately handle
# Redirects for folders with Dav methods.
#
Browsermatch "Microsoft Data Access Internet publishing provider" Redirect-carefully
Browsermatch "Ms FrontPage" Redirect-carefully
Browsermatch "^ webdrive" Redirect-carefully
Browsermatch "^ webdavfs/1. [0123]" Redirect-carefully
Browsermatch "^ gnome-VFS/1.0" Redirect-carefully
Browsermatch "^ XML Spy" Redirect-carefully
Browsermatch "^ Dreamweaver-WebDAV-SCM1" Redirect-carefully

Create Password Database

Use htpasswd.exe to create the password database, it's a file which authuserfile refer to.by using the basicauthentication, and using htpasswd.exe under the bindirectory to generate the file named authuserfile in the above configuration file: User. pwd. If you want to extract the certificate, use htdigest.exe. the syntax of the two is similar. Here I use this command (I execute the command like this ):
Htpasswd.exe-c "D:/Apache Software Foundation/apache2.2/davpwd/user. pwd" dav@MyDomain.com
After you press enter, you will be prompted to enter the password twice.

Config webDAV client

Windows XP provides better support for WebDAV. we can connect to WebDAV server by using its network neighbors or by ing Network disks, or using IE. In IE, I use the "open web folder" method to open the WebDAV folder referred to by "http: // localhost/load.

Postscript
Note that, in some cases, you need to use "address + port number" or "address + #" to open the WebDAV folder on XP, because windows and Windows XP have different versions of WebDAV driver.

Reference
Http://www.webdav.org/mod_dav/
Http://www.webdav.org/mod_dav/faq/#00-00
Http://www.thrrrust.com /~ Pclark/blog/2005/03/fun-with-windows-xp-and-webdav.html
Http://www.debian-administration.org/articles/279
Http://ulihansen.kicks-ass.net/aero/webdav/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.