ich habe eine voll funktionsfähige DAViCal Installation. Clients können sich über die gewöhnliche URL: https://DAViCal.Hostname.MyDomain.Local ... b]Username[/b]/Collection anmelden und arbeiten. Dabei steht "Collection" stellvertretend für die Bezeichnung des Adressbuchs oder des Kalendernamens. Nun stehe ich vor der Herausforderung, dass Username und Collection via Subdomain anstelle der Ordner mitgeteilt werden muss. An dieser Stelle habe ich auf die mod_rewrite Methode gesetzt, sodass im Hintergrund: https://calendar.username.davical.hostname.mydomain.local zu folgendem übersetzt wird: https://davical.hostname.mydomain.local ... b]username[/b]/collection
Der hierfür verantwortliche Teil der vHosts Konfiguration sieht wiefolgt aus:
Code: Alles auswählen
AcceptPathInfo On
<IfModule mod_fcgid.c>
FcgidPassHeader Authorization
</IfModule>
<IfModule mod_proxy.c>
SSLProxyEngine on
<ifModule mod_rewrite.c>
<If "(%{SERVER_NAME} =~ m#^.*\..*\.DaviCal\..*$#i)">
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.(.*)\.(DaviCal\..*)/?(.*) [NC]
RewriteRule ^(.*)$ https://%3/htdocs/caldav.php/%2/%1/%4 [E=WEBDAV:true,E=REDIRECT_WEBDAV:true,E=REMOTE_USER:%{HTTP:Authorization},NC,QSA,L,P]
</If>
</IfModule>
</IfModule>
Code: Alles auswählen
[Thu May 21 20:58:41.533379 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: :Response status 405 for PUT /htdocs/caldav.php/username/calendar/
[Thu May 21 20:58:41.533439 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: :***************** Response Header ****************
[Thu May 21 20:58:41.533453 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: headers:-->Server: 1.1
[Thu May 21 20:58:41.533463 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
[Thu May 21 20:58:41.533474 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
[Thu May 21 20:58:41.533484 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.2; DB/1.2.11
[Thu May 21 20:58:41.533494 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: headers:-->Content-type: text/plain; charset="utf-8"
[Thu May 21 20:58:41.533504 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: :******************** Response ********************
[Thu May 21 20:58:41.533514 2015] [fcgid:warn] [pid 3027:tid 34540181504] [client 192.168.50.101:25960] mod_fcgid: stderr: davical: LOG: response:-->