On 03/02/12 04:56, Robert Casties wrote:
Does sogo support .well-known URLs out of the box? Has anybody hacked
anything in Apache? Does this help with iCal?
Here's a working Apache trick:

<VirtualHost *:8008>
  RewriteEngine On
  RewriteRule   ^/.well-known/caldav$  /SOGo/dav/   [R]
  ProxyRequests Off
  SetEnv proxy-nokeepalive 1
  ProxyPreserveHost On
  ProxyPassInterpolateEnv On
  ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
  ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate
  ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate
<Location />
    Order allow,deny
    Allow from all
</Location>
<Proxy http://127.0.0.1:30000>
    RequestHeader set "x-webobjects-server-port" "8008"
    RequestHeader set "x-webobjects-server-name" "foo.bar.zot:8008"
    RequestHeader set "x-webobjects-server-url" "http://foo.bar.zot:8008";
    RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
    RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
    AddDefaultCharset UTF-8
</Proxy>
  ErrorLog /var/log/apache2/cal-error.log
  CustomLog /var/log/apache2/cal-access.log combined
</VirtualHost>

--
Ludovic Marcotte
[email protected]  ::  +1.514.755.3630  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to