Chapter 6. Apache mod_dav_mythical Configuration

6.1. Introduction

MythiCal provides an Apache 2 module to enable standard CalDAV clients to access MythiCal calendars without having to use the libmythical client API. All of the build configuration is handled using the standard apxs build tool if detected when running the configure script.

mod_dav_mythical is implemented as a DAV provider which substantially reduces the code needed in order to realise a full CalDAV implementation. In addition, the module also supports the Apache 2 authzn API which enables each backend to provide its own authentication mechanism to retain compatibility with existing login credentials.

6.2. Sample Configuration

Below is an example of a httpd.conf configuration for mod_dav_mythical which maps the root of the MythiCal namespace to a URL of /mythitest whilst using the per-backend authentication scheme to control access:

# Requires mod_dav
LoadModule dav_module modules/mod_dav.so

LoadModule dav_mythical_module modules/mod_dav_mythical.so

<Location /mythitest>
    Dav mythical

    AuthType Basic
    AuthName "MythiCal"
    AuthBasicProvider mythical
    Require valid-user

    Order Allow,Deny
    Allow from all
</Location>