Skip to content

Instantly share code, notes, and snippets.

@sss
Created July 28, 2011 08:20
Show Gist options
  • Save sss/1111195 to your computer and use it in GitHub Desktop.
Save sss/1111195 to your computer and use it in GitHub Desktop.
HOWTO: Setup "Calendar and Contacts Server" behind Apache 2.2 with SSL
This HOWTO is about...
* You already installed Apache HTTPd 2.2 with SSL (mod_ssl or mod_gnutls)
* and want to setup "Calendar and Contacts Server" behind it
1. You can install "Calendar and Contacts Server"
(http://trac.calendarserver.org/) under Debian, as follows:
$ apt-get install calendarserver
2. Insert this into your <VirtualHost> in Apache HTTPd.
You need mod_proxy before this.
<Location /calendars/>
ProxyPass http://localhost:8008/calendars/
ProxyPassReverse http://localhost:8008/calendars/
<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT MOVE COPY DELETE LOCK UNLOCK>
Order Deny,Allow
Allow from all
Satisfy Any
</Limit>
</Location>
<Location /principals/>
ProxyPass http://localhost:8008/principals/
ProxyPassReverse http://localhost:8008/principals/
<Limit OPTIONS PROPFIND GET REPORT MKACTIVITY PROPPATCH PUT MOVE COPY DELETE LOCK UNLOCK>
Order Deny,Allow
Allow from all
Satisfy Any
</Limit>
</Location>
3. Restart Apache HTTPd.
4. Your calendar is at https://example.org/calendars/users/[username]/calendar
This server support calendar and tasks with Mozilla Thunderbird + Lightning ;-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment