Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I provide shared web-hosting for my customers. PHP works with fast-cgi, ftp access is also no problem. But how do I enable web-dav for my customers? Every customer has its own uid and gid. Apache uses for webdav its own uid/gid.

share|improve this question

There is some explanation about this in the mod_dav FAQ. The proposed options are:

  1. You can request Apache to do setuid (but this requires Apache to run as root, which is specifically discouraged)
  2. You can run an Apache instance for each customer
  3. You can try to find a WebDAV server in PHP or CGI and then use something like suphp or suexec
share|improve this answer

Try setting some auth directives in your location section:


<Location /webshare/>
AuthType Basic
AuthName "Editing Restricted"
AuthUserFile /home/httpd/vhosts/

Require user wbuser

That will ensure that anyone trying to see the files will have to supply credentials. You'll have to set the dav directory so apache's gid can see it though, but no-one should be able to view files without authenticating with the directories .DAVlogin file, which will only contain passwords for that site's user.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.