The default port für CalDAV/CardDAV with SSL should be 8443 (used here
with sogo 1.3.17)
On 9/7/12 11:38 AM, Marek Skubela wrote:
Hello,
I'm trying to set up CardDAV on separate port (8843) without any luck.
I am using SOGO 2.0.0.20120907-1 on Ubuntu 10.04 with Apache 2.2.14.
My CardDAV VHost is as follows:
<VirtualHost *:8843>
ServerName mail.example.pl
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert.pem
SSLCertificateKeyFile /etc/ssl/private/key.key
SSLProtocol all -SSLv2
RewriteEngine Off
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:20000>
# Directive replaces previous header with that name.
RequestHeader set "x-webobjects-server-port" "8843"
RequestHeader set "x-webobjects-server-name"
"mail.example.pl:8843"
RequestHeader set "x-webobjects-server-url"
"https://mail.example.pl:8843"
RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
AddDefaultCharset UTF-8
</Proxy>
LogLevel debug
ErrorLog /var/log/apache2/sogo-ab-error.log
CustomLog /var/log/apache2/sogo-ab-access.log combined
</VirtualHost>
When I try to connect with Android CardDAV client on port 8843:
10.1.0.12 - - [07/Sep/2012:11:17:18 +0200] "PROPFIND
/.well-known/carddav HTTP/1.1" 404 1905 "-" "CardDAV-Sync (Android)
(like iOS/5.0.1 (9A405) dataaccessd/1.0) gzip"
10.1.0.12 - - [07/Sep/2012:11:17:18 +0200] "PROPFIND /SOGo/dav/
HTTP/1.1" 401 445 "-" "CardDAV-Sync (Android) (like iOS/5.0.1 (9A405)
dataaccessd/1.0) gzip"
10.1.0.12 - - [07/Sep/2012:11:17:19 +0200] "PROPFIND /SOGo/dav/
HTTP/1.1" 207 2189 "-" "CardDAV-Sync (Android) (like iOS/5.0.1 (9A405)
dataaccessd/1.0) gzip"
And then I see that it switches to 443 port, because in ssl-access log
I then see:
10.1.0.12 - - [07/Sep/2012:11:17:20 +0200] "PROPFIND
/SOGo/dav/marek.skubela%40example.pl/ HTTP/1.1" 401 1757 "-"
"CardDAV-Sync (Android) (like iOS/5.0.1 (9A405) dataaccessd/1.0) gzip"
10.1.0.12 - - [07/Sep/2012:11:17:21 +0200] "PROPFIND
/SOGo/dav/marek.skubela%40example.pl/ HTTP/1.1" 207 2219 "-"
"CardDAV-Sync (Android) (like iOS/5.0.1 (9A405) dataaccessd/1.0) gzip"
10.1.0.12 - - [07/Sep/2012:11:17:21 +0200] "PROPFIND
/SOGo/dav/marek.skubela%40example.pl/Contacts/ HTTP/1.1" 401 445 "-"
"CardDAV-Sync (Android) (like iOS/5.0.1 (9A405) dataaccessd/1.0) gzip"
10.1.0.12 - - [07/Sep/2012:11:17:22 +0200] "PROPFIND
/SOGo/dav/marek.skubela%40example.pl/Contacts/ HTTP/1.1" 207 2481 "-"
"CardDAV-Sync (Android) (like iOS/5.0.1 (9A405) dataaccessd/1.0) gzip"
Similar behaviour I've noticed with Apple AddressBook.
If I disable the 443 port, none of the clients work at all.
I tested PROPFIND request manually with curl on 8843 and
the responses seem valid. Is there something in SOGo that
redirects requests to 443 port?
TIA,
Marek Skubela
marek.skub...@dignum.pl
--
users@sogo.nu
https://inverse.ca/sogo/lists