Difference between revisions of "Mod dav"

From SME Server
Jump to navigationJump to search
(Categories with only one entry aren't very useful)
m (Tweaking some more...)
(22 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== mod_dav for SME Server ==
+
{{Languages}}
 +
{{Level|Easy}}
  
 
=== Maintainer ===
 
=== Maintainer ===
 
[mailto:smeserver-contribs@snetram.nl Jonathan Martens]
 
[mailto:smeserver-contribs@snetram.nl Jonathan Martens]
 +
 +
=== Version ===
 +
{{ #smeversion: smeserver-mod_dav }}
  
 
=== Description ===
 
=== Description ===
This contrib provides mod_dav for SME Server, it has been written to make sure it is installed as it is required by my Subversion contrib.
+
This contrib provides mod_dav for SME Server, it has been written to make sure it is installed as it is required by my Subversion contrib, but it can be used independently to add DAV to i-bays as well, this way you can, for instance, use it to store your [http://en.wikipedia.org/wiki/ICal iCal] web calendar files, using the [http://www.webdav.org/ WebDAV] protocol.
  
 
=== Installation ===
 
=== Installation ===
This contrib can be found in the [http://mirror.contribs.org/smeserver/releases/7/smedev/i386/repodata/ SME Dev] repository. To install this contrib get shell access as root user and issue the following command:
+
Install the contrib:
  yum install smeserver-mod_dav --enablerepo=smedev
+
yum install smeserver-mod_dav --enablerepo=smecontribs
 +
 
 +
=== Configuration ===
 +
DAV access is disabled for all ibays by default.
 +
 
 +
====Enable/disable DAV access for an ibay====
 +
To enable DAV access to an ibay use the following commands:
 +
  db accounts setprop ibay-name ModDav enabled
 +
signal-event ibay-modify ibay-name
  
=== Additional information ===
+
To disable DAV access to an ibay use the following commands:
This contrib only loads mod_dav for the httpd daemon and does not provide other configuration templates or a server-manager panel.
+
db accounts setprop ibay-name ModDav disabled
 +
signal-event ibay-modify ibay-name
  
 +
====ETag http response header (FileETag) settings====
 +
According to [[bugzilla:4482]] there seems to be a problem when using Sunbird calendar sharing in DAV enabled ibays. To fix this you can define the FileETag setting to a value of none using the following command:
 +
db accounts setprop ibay-name ModDav-FileETag none
 +
More information on possible FileETag options can be found in the [http://httpd.apache.org/docs/2.0/mod/core.html#fileetag Apache documentation].
 +
 +
===Usage===
 +
 +
====Accessing a DAV enabled ibay====
 +
DAV-enabled Ibays can be accessed in any of several ways:
 +
 +
=====through Windows My Network Places=====
 +
# Open "My Network Places"
 +
# Select "Add a network place"
 +
# Choose "Next"
 +
# Choose "Another network location"
 +
# Enter the address to your DAV enabled ibay, for instance <nowiki>http://server/data</nowiki> or <nowiki>https://server/data</nowiki>
 +
 +
=====through Internet Explorer=====
 +
According to [http://forums.contribs.org/index.php?topic=33157.msg142168#msg142168 this post] you can allow Windows/Internet Explorer users to open your DAV-enabled Ibays in Explorer for read-write access directly from your website by using code similar to the lines below.
 +
 +
As a (normal) link:
 +
 +
<a href="<nowiki>http://localhost/data/</nowiki>">Link to folder</a>
 +
 +
As a webfolder:
 +
 +
<a href="" folder="<nowiki>http://localhost/data/</nowiki>">Link to data folder</a>
 +
 +
=== Bugs ===
 +
Please raise bugs under the SME-Contribs section in {{BugzillaFileBug|product=|component=|title=bugzilla}}and select the smeserver-mod_dav component or use {{BugzillaFileBug|product=SME%20Contribs|component=smeserver-mod_dav|title=this link}}.
 
----
 
----
 
 
[[Category: Contrib]]
 
[[Category: Contrib]]
 +
[[Category: Administration:File and Directory Access]]

Revision as of 20:27, 26 May 2010


PythonIcon.png Skill level: Easy
The instructions on this page can be followed by a beginner.


Maintainer

Jonathan Martens

Version

Contrib 10:
Contrib 9:
smeserver-mod_dav
The latest version of smeserver-mod_dav is available in the SME repository, click on the version number(s) for more information.


Description

This contrib provides mod_dav for SME Server, it has been written to make sure it is installed as it is required by my Subversion contrib, but it can be used independently to add DAV to i-bays as well, this way you can, for instance, use it to store your iCal web calendar files, using the WebDAV protocol.

Installation

Install the contrib:

yum install smeserver-mod_dav --enablerepo=smecontribs

Configuration

DAV access is disabled for all ibays by default.

Enable/disable DAV access for an ibay

To enable DAV access to an ibay use the following commands:

db accounts setprop ibay-name ModDav enabled
signal-event ibay-modify ibay-name

To disable DAV access to an ibay use the following commands:

db accounts setprop ibay-name ModDav disabled
signal-event ibay-modify ibay-name

ETag http response header (FileETag) settings

According to bugzilla:4482 there seems to be a problem when using Sunbird calendar sharing in DAV enabled ibays. To fix this you can define the FileETag setting to a value of none using the following command:

db accounts setprop ibay-name ModDav-FileETag none

More information on possible FileETag options can be found in the Apache documentation.

Usage

Accessing a DAV enabled ibay

DAV-enabled Ibays can be accessed in any of several ways:

through Windows My Network Places
  1. Open "My Network Places"
  2. Select "Add a network place"
  3. Choose "Next"
  4. Choose "Another network location"
  5. Enter the address to your DAV enabled ibay, for instance http://server/data or https://server/data
through Internet Explorer

According to this post you can allow Windows/Internet Explorer users to open your DAV-enabled Ibays in Explorer for read-write access directly from your website by using code similar to the lines below.

As a (normal) link:

<a href="http://localhost/data/">Link to folder</a>

As a webfolder:

<a href="" folder="http://localhost/data/">Link to data folder</a>

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-mod_dav component or use this link .