Create an iCalendar server with debian 5.0 lenny
Zuerst benötigt man einen funktionsfähigen Apache2 Webserver mit dem Modul “dav_fs”. Wenn man iCal über SSL verwenden will, muss der Apache2 Webserver zusätzlich mit “mod_ssl” konfiguriert sein.
a2enmod dav_fs
Nun muss man die Apache Konfiguration anpassen:
Folgende Konfiguration in den entsprechenden “virtualhost” einfügen;
Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
DAV On
</location>
Nun kann man z.B. mit Sunbird einen neuen Kalender anlegen. Dazu einfach einen neuen Kalender hinzufügen, “Network calendar” und “iCalendar (ICS)” auswählen. Anschließend die URL zum Kalenderserver eingeben: “http://your.server.address/iCalendar/myCalendar.ics” (Oder https)
Natürlich kann man das Kalenderverzeichnis auch mit Benutzername und Passwort absichern:
Beispiel mit MySQL-autentifizierung:
Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
DAV On
AuthBasicAuthoritative Off
AuthUserFile /dev/null
AuthMySQL On
AuthName "Calendar"
AuthType Basic
Auth_MySQL_Host localhost
Auth_MySQL_User DB_USER
Auth_MySQL_Password DB_PASS
AuthMySQL_DB DB_NAME
AuthMySQL_Password_Table DB_TABLE
Auth_MySQL_Username_Field DB_USER_FIELD
Auth_MySQL_Password_Field DB_PASSWORD_FIELD
Auth_MySQL_Empty_Passwords Off
Auth_MySQL_Encryption_Types Crypt_DES
Auth_MySQL_Authoritative On
require valid-user
</location>
Beispiel mit Password-file:
Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
DAV On
AuthName "Calendar"
AuthUserFile "/your/path/to/.htpasswd"
require valid-user
</location>
Das Password-file anlegen:
htpasswd -c /your/path/to/.htpasswd MY_USER
Jetzt muss man die URL zu seinem Kalender in Sunbird ändern zu “http://MY_USER:MY_PASSWORD@your.server.address/iCalendar/myCalendar.ics”.
Wenn man zusätzlich ein Webinterface für seinen Kalender haben will, sollte man sich http://www.php-calendar.com ansehen.
New blog layout Install Coldfusion 8 Multiserver on Debian 5.0 Lenny with Apache 2

