Re: webdav
From: Gordon Messmer (yinyang@eburg.com)Date: 08/02/01
- Previous message: Davy Van De Moere: "Re: Security Policies?"
- In reply to: tfing: "webdav"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 2 Aug 2001 00:22:44 -0700 (PDT) From: Gordon Messmer <yinyang@eburg.com> To: tfing <tenfingers@ifrance.com> Subject: Re: webdav Message-ID: <Pine.LNX.4.33.0108012346090.30873-100000@localhost>
On Wed, 1 Aug 2001, tfing wrote:
> i would have like to know your opinion about webdav and its
> implementation in the mod_dav apache module (with security in mind of
> course) i want to use it as an ftp replacement it seems perfect to me
> because you can store the login/passwords in an apache password file
> but i still want another point of view
If you're comparing DAV to FTP, then there's very little comparison. DAV
wins hands down. For one thing, it works over SSL. Ever try to find an
FTP client that supported SSL? Or a good graphical SFTP client? I'm
still looking.
With regard to security, you should make sure that the files related to
locks and passwords are either outside the web root (best solution) or
will not be served by the http server (it works...). Use MD5 hashes in
the .htpasswd files to make brute forcing more difficult.
My setup looks sorta like this (the relevant bits, anyway):
The names have been changed to protect the innocent.
###
DAVLockDB /var/www/dav/DAVLock
<Files ~ "^\.DAV">
Order allow,deny
Deny from all
</Files>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
<VirtualHost 127.0.0.1:80>
ServerName mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot "/home/someuser/mydomain.com/html"
<Directory "/home/someuser/mydomain.com/html">
Options Indexes Includes FollowSymLinks
AllowOverride All
</Directory>
Alias /site "/home/someuser/mydomain.com"
<Location /site>
DAV On
ForceType text/plain
Require valid-user
AuthName mydomain
AuthType basic
AuthUserFile /home/someuser/mydomain.com/.htpasswd
</Location>
</VirtualHost>
###
Users login to https://mydomain.com/site to use DAV, and the ForceType
directive insures that .php and cgi files are treated as just text
documents.
The .htpasswd file could just as easily be stored at
/home/someuser/.mydomain.com.htpasswd, but I think this user wanted to
manage the file with DAV.
MSG
-- If I had a dollar for every brain that you don't have, I'd have one dollar. - Squidward to SpongeBob
- Previous message: Davy Van De Moere: "Re: Security Policies?"
- In reply to: tfing: "webdav"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|