You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Here you have an example for a WebDAV configuration in Apache

<VirtualHost *:80>
        ServerAdmin webmaster@sos-berlin.com
        ServerName homer.sos
        ServerAlias homer.sos
        
        # don't loose time with IP address lookups
    	HostnameLookups Off

    	# needed for named virtual hosts
    	UseCanonicalName Off

    	# configures the footer on server-generated documents
   	ServerSignature On

        Alias /jade /tmp/test/jade
       
       	<Directory /tmp/test/jade/ >
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        
        <Location /jade >
           DAV On
           AuthType Basic
           AuthName "webdav"
           AuthUserFile /srv/www/passwd.dav
           Require valid-user
           
           ErrorDocument 400 default
    	   ErrorDocument 401 default
    	   ErrorDocument 403 default
    	   ErrorDocument 404 default
    	   ErrorDocument 405 default
    	   ErrorDocument 408 default
    	   ErrorDocument 410 default
    	   ErrorDocument 411 default
    	   ErrorDocument 412 default
    	   ErrorDocument 413 default
    	   ErrorDocument 414 default
    	   ErrorDocument 415 default
    	   ErrorDocument 500 default
    	   ErrorDocument 501 default
    	   ErrorDocument 502 default
    	   ErrorDocument 503 default
    	   ErrorDocument 506 default
       	</Location>        

</VirtualHost>

DAVLockDB /var/lib/dav/lockdb

Make sure that the Apache user (e.g. wwwrun) has sufficient permissions on above WebDAV directory /tmp/test/jade.

It is strongly recommended that you configure all Apache ErrorDocument to default in the WebDAV location.

If you send a file with Jade to an Apache WebDAV server then Jade checks wether the target file already exists.
If the target file doesn't exist then the Apache WebDAV server response the 'ErrorDocument 404' in addition to the HTTP Status 404
Otherwise the answer of the apache takes much longer if

  • No labels