Apache HTTP Server

WebDAV
/etc/apache2/modules.d/45_mod_dav.conf

    LimitXMLRequestBody 131072 Alias /dav "/var/www/dav"  Dav On       Options +Indexes IndexOptions FancyIndexing AddDefaultCharset UTF-8 AllowOverride None Order allow,deny Allow from all AuthType Basic AuthName "WebDAV" AuthUserFile /etc/apache2/dav.passwd Require valid-user   DavLockDB "/var/lib/dav/lockdb"  BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "MS FrontPage" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012345678]" redirect-carefully BrowserMatch "^gnome-vfs/1.0" redirect-carefully BrowserMatch "^XML Spy" redirect-carefully BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully  
 * 1) The following directives disable redirects on non-GET requests for
 * 2) a directory that does not include the trailing slash.  This fixes a
 * 3) problem with several clients that do not appropriately handle
 * 4) redirects for folders with DAV methods.

Create the password file and restart Apache...

htpasswd -c /etc/apache2/dav.passwd test /etc/init.d/apache2 restart

To test, install the software cadaver

emerge net-misc/cadaver

Then...

server.domain.com ~ $ cadaver http://10.0.0.1/dav Authentication required for WebDAV on server `10.0.0.1': Username: test Password: dav:/dav/> ls Listing collection `/dav/': succeeded. fish.txt                              5  Jan 24 15:22 dav:/dav/> cat fish.txt Displaying `/dav/fish.txt': fish dav:/dav/> quit Connection to `10.0.0.1' closed.

[Category:Internet] [Category:Software] [Category:Linux]