Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Example of WebDAV configuration

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

...

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).

Example for WebDAV configuration behind a proxy

Change directory element of the above configuration so that only the proxy has access to the WebDAV location

Code Block
languagehtml/xml

        # allow only from proxy server 192.11.0.222 
        <Directory /tmp/test/jade/ >
                Options Indexes MultiViews
                AllowOverride None
                Order allow,deny
                allow from 192.11.0.222
        </Directory>

Where 192.11.0.222 is the IP address of the proxy server.

In the Apache configuration on the proxy server (192.11.0.222) add:

Code Block

 ProxyPass <span style="color:red;">/jade/</span> <nowiki>http://homer.sos</nowiki><span style="color:red;">/jade/</span>
 ProxyPassReverse <span style="color:red;">/jade/</span> <nowiki>http://homer.sos</nowiki><span style="color:red;">/jade/</span>

where homer.sos is the name of the WebDAV server.
It is necessary for JADE that the WebDAV directory has the same name like the proxy url.

...

back to list of JADE / SOSFTP FAQs