Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
outlinh1. true
outlinh1. true
1printablefalse
2stylh1. none
3indent20px

[back to list of JADE / SOSFTP FAQs|Here you have an example for a WebDAV configuration in Apache.

Make sure that the modules dav_module, dav_fs_module and dav_lock_module are loaded.

See http_://httpd.apache.org/docs/2.2/mod/mod_dav.html, http://httpd.apache.org/docs/2.2/mod/mod_dav_fs.html and http_://httpd.apache.org/docs/2.2/mod/mod_dav_lock.html for more information.

Code Block
languagehtml/xml
<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.

<span style="color_:red;">It is strongly recommended that you configure all Apache _ErrorDocument to default in the WebDAV location or you remove all ErrorDocument in the httpd.conf.</span>

...

If the ErrorDocument 404 points e.g. to /error/HTTP_NOT_FOUND.html.var then the answer of the Apache takes much longer (~1 minute).

...

[back to list of JADE _ / _ SOSFTP _FAQFAQs