Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

WebDAV (via SSL) is configured on a VirtualHost on my root-Server. SSL is working fine with all clients and other applications running below this virtual host are working. Unfortunately WebDAV does not.

Nautilus as Client works well, cadaver as client works only on some (php) files, not on all. An old Internet Explorer 6 is working as well, but recent clients on Mac OS X and Windows do not work.

Both dav-modules are enabled, files and directories are owned by www-data:www-data and the following excerpt is part of my config (anonymized).



    # WebDAV
    DavLockDB /srv/dav/lockdb


    Alias /serendipity "/srv/www/webdav"
    <Directory "/srv/www/webdav">
        DAV on
        ForceType text/plain
        Options +Indexes
        AllowOverride None
        AuthType Basic
        AuthName "Serendipity Testblog"
        AuthUserFile /srv/pwd/serendipity
        Require valid-user



Any ideas?

share|improve this question

To add to this: DAV itself is working and shows directories and files, but file retrieval only results in the HTTP-parsed representation of a file. That means, PHP gets parsed and the downloaded file shows the file as if it were viewed inside a Browser.

share|improve this answer

Add a line beneath the DAVLockDB directive, which says:

ForceType text/plain

This will tell Apache not to evaluate scripts but answer their file content instead.

Good luck...

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.