This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Difference between revisions of "WebDAV"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
Line 2: Line 2:
  
 
With WebDAV you can mount the Group-Office files as a network share on your desktop. First you must determine the <b>baseURI</b>.
 
With WebDAV you can mount the Group-Office files as a network share on your desktop. First you must determine the <b>baseURI</b>.
 +
 +
==Server Installation==
 +
If you didn't install with the Debian packages don't have to install anything. Everything is configured by default.
  
 
Ideally your Apache webserver is configured with an alias
 
Ideally your Apache webserver is configured with an alias
Line 9: Line 12:
 
In this case your baseURI is:
 
In this case your baseURI is:
  
https://your.url.to.groupoffice/webdav/  
+
'''https://your.url.to.groupoffice/webdav/'''
  
 
Otherwise the URL will not work on Windows and it's:
 
Otherwise the URL will not work on Windows and it's:
  
https://your.url.to.groupoffice/modules/dav/files.php/  
+
'''https://your.url.to.groupoffice/modules/dav/files.php/'''
  
 
The WebDAV feature is based on [http://code.google.com/p/sabredav/ SabreDAV]. You can find more information about clients on that page too.
 
The WebDAV feature is based on [http://code.google.com/p/sabredav/ SabreDAV]. You can find more information about clients on that page too.
 +
 +
===Installation when PHP runs in CGI mode===
 +
 +
If you use PHP through CGI or FastCGI and Apache authentication headers are not passed through by default. You can enable this with the following mod_rewrite rule:
 +
 +
<pre>
 +
<IfModule mod_rewrite.c>
 +
  RewriteEngine on
 +
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
 +
</IfModule>
 +
</pre>
 +
 +
If you already had a mod_rewrite rule to map all urls to a server file, you might need to change this to something like:
 +
 +
<pre>
 +
<IfModule mod_rewrite.c>
 +
  RewriteEngine on
 +
  RewriteRule .* /modules/caldav/calendar.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
 +
</IfModule>
 +
</pre>
 +
 +
Note the /modules/caldav/calendar.php. Make sure this reflects the correct relative URL of your server file.
  
 
==Windows==
 
==Windows==

Revision as of 13:54, 21 March 2011

Note: This feature is only available in 3.6 and higher.

With WebDAV you can mount the Group-Office files as a network share on your desktop. First you must determine the baseURI.

Server Installation

If you didn't install with the Debian packages don't have to install anything. Everything is configured by default.

Ideally your Apache webserver is configured with an alias

Alias /webdav /path/to/groupoffice/modules/dav/files.php

In this case your baseURI is:

https://your.url.to.groupoffice/webdav/

Otherwise the URL will not work on Windows and it's:

https://your.url.to.groupoffice/modules/dav/files.php/

The WebDAV feature is based on SabreDAV. You can find more information about clients on that page too.

Installation when PHP runs in CGI mode

If you use PHP through CGI or FastCGI and Apache authentication headers are not passed through by default. You can enable this with the following mod_rewrite rule:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 

If you already had a mod_rewrite rule to map all urls to a server file, you might need to change this to something like:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule .* /modules/caldav/calendar.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule> 

Note the /modules/caldav/calendar.php. Make sure this reflects the correct relative URL of your server file.

Windows

Use the URL above and follow the instructions here:

http://code.google.com/p/sabredav/wiki/Windows

Davfs2

Make sure "davfs2" is installed.

Create a mount point as root:

mkdir /media/groupoffice/

Add to /etc/davfs2/davfs2.conf (See https://bugs.launchpad.net/ubuntu/+source/davfs2/+bug/459998):

ignore_home kernoops

Add your user to the davfs2 group in /etc/group. Find the line with davfs2 and append your user name like this:

davfs2:x:130:username


Add this line to /etc/fstab:

https://your.url.to.groupoffice/modules/dav/files.php/ /media/groupoffice davfs user,noauto,rw 0 0

Then, add the following line to /etc/davfs2/secrets:

https://your.url.to.groupoffice/modules/dav/files.php/    username    mypassword

Now run:

chmod u+s /sbin/mount.davfs

Now you can mount the drive with the file manager or on the terminal as the normal user:

mount /media/groupoffice/

And you should be able to browse your Group-Office files.