Hi,

I can connect with iPHone to sync contacts via internet when manually adding a CardDAV profile that points to the public IP.
When using the hostname (test.mydomain.com) it does not work.
It also does not work when using the iPhone configuration utility and create a CardDAV Profile (either IP or hostname).
It seems that

a) my configuration does not listen on the hostname.
b) if a CardDAV profile is created with iOS Configuration Utility you have to provide a provision URL and it does not
   automatically search for it.

I need to be able to access via internal IP and external IP (using external hostname).

I opened port 8443 on the firewall NATing to SOGo 8443
Here is my SOGo.conf

Alias /SOGo.woa/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
           /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2

<Directory /usr/lib/GNUstep/SOGo/>
    AllowOverride None
    Order deny,allow
    Allow from all

# Explicitly allow caching of static content to avoid browser specific behavior. # A resource's URL MUST change in order to have the client load the new version.
    <IfModule expires_module>
      ExpiresActive On
      ExpiresDefault "access plus 1 year"
    </IfModule>
</Directory>

<LocationMatch "^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
  SetHandler default-handler
</LocationMatch>

## Uncomment the following to enable proxy-side authentication, you will then ## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
#<Location /SOGo>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

# When using CAS, you should uncomment this and install cas-proxy-validate.py
# in /usr/lib/cgi-bin to reduce server overloading
#
# ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py
# <Proxy http://localhost/app/cas-proxy-validate.py>
#   Order deny,allow
#   Allow from your-cas-host-addr
# </Proxy>

ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
#  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-port" "80"
  RequestHeader set "x-webobjects-server-name" "10.110.160.131"
#  RequestHeader set "x-webobjects-server-url" "https://10.110.160.131";
  RequestHeader set "x-webobjects-server-url" "http://10.110.160.131";

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>


### Addressbook SSL on IP ###
<VirtualHost 0.0.0.0:8443>
 ServerName 0.0.0.0
 SSLEngine On

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

ProxyPassInterpolateEnv On
#for CardDAV
ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass /SOGo/dav/ http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate

<Proxy http://127.0.0.1:20000>
 RequestHeader set "x-webobjects-server-port" "8443"
 RequestHeader set "x-webobjects-server-name" "10.110.160.131:8843"
 RequestHeader set "x-webobjects-server-url" "https://10.110.160.131:8443";
 RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
 RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
 AddDefaultCharset UTF-8
 Order allow,deny
 Allow from all
</Proxy>
</VirtualHost>
### Addressbook SSL on test.mydomain.com ###
### Addressbook SSL ###
<VirtualHost test.mydomain.com:8443>
 ServerName test.mydomain.come
 SSLEngine On

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

ProxyPassInterpolateEnv On
#for CardDAV
ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass /SOGo/dav/ http://127.0.0.1:20000/SOGo/dav/ interpolate
ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate

<Proxy http://127.0.0.1:20000>
 RequestHeader set "x-webobjects-server-port" "8443"
 RequestHeader set "x-webobjects-server-name" "test.mydomain.com:8843"
RequestHeader set "x-webobjects-server-url" "https://test.mydomain.com:8443";
 RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
 RequestHeader set "x-webobjects-remote-host" "127.0.0.1"
 AddDefaultCharset UTF-8
 Order allow,deny
 Allow from all
</Proxy>
</VirtualHost>



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

Reply via email to