I did this and it works pretty well. I have phpicalendar installed in /home/httpd/calendar and I use WebDAV to put my calendars into /home/httpd/calendar/calendars with Mozilla Sunbird. SSL and a password are required to access the calendar by either a browser or WebDAV at
https://calendar.my.domain.
The things you will need to do are:
1) Edit /etc/conf.d/apache2 and add "-D DAV -D DAV_FS" to the apache2 opts line.
2) Edit /etc/apache2/conf/commonapache2.conf and add a section similar to the following:
Code: Select all
<Directory /home/httpd/calendar>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Dav On
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redire
ct-carefully
AuthType Basic
AuthName Calendar.my.domain
AuthUserFile /home/httpd/.htpasswd-calendar
require valid-user
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
3) Add the following to /etc/apache2/conf/vhosts/vhosts.conf:
Code: Select all
<VirtualHost *:80>
ServerName calendar.my.domain
ServerAlias *.calendar.calendar.my.domain
Redirect / https://Calendar.my.domain/
</VirtualHost>
Include conf/vhosts/ssl.calendar.my.domain.conf
This will redirect all requests to
http://calendar.my.domain to the corresponding address at
https://calendar.my.domain
4) Create the ssl.calendar.my.domain.conf file. There should be an example file in the conf/vhosts directory. Just copy it to a new file and change the hostname and Document root to suit your needs and you should be set.