General discussion on installation and configuration of SOGo

Text archives Help

[SOGo] Mixup with proxy setup - Service Temporarily Unavailable

Chronological Thread 
  • From: Dominique < >
  • To: SOGo User List < >
  • Subject: [SOGo] Mixup with proxy setup - Service Temporarily Unavailable
  • Date: Tue, 29 Jul 2014 12:08:25 +0200


My server just crashed so I decided to reorganize my setup after the
I used to have SOGo running on the server itself, but in my new config,
I created a VM on top of the server, just for SOGo.
Got the install done again, restored the backup, and voila, the SOGo VM
works, SOGo works except that I can only access it within the LAN.

Due to ISP's router limitation, I had to route all traffic to server and
then reroute from there. So the traffic goes as follow:
Internet <-> ISP Router <-> Main Server ( <-> SOGo VM
to do that I added an apache2 proxy in the main server
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse /


Which allows for external access to the apache server on the VM.
However I must be missing something in the SOGo.conf file, as all I get
is "Service Temporarily Unavailable"

My sogo.conf file for the SOGO VM is as follow (retrieved from backup
and modified for Ubuntu 14.04)

Alias /SOGo.woa/WebServerResources/ \
Alias /SOGo/WebServerResources/ \
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \

<Directory /usr/lib/GNUstep/SOGo/>
AllowOverride None
Require all granted

SetHandler default-handler

## Uncomment the following to enable proxy-side authentication, you will
## 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

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

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

ProxyPass /SOGo retry=0

## adjust the following to your configuration
RequestHeader set "x-webobjects-server-port" "80"
RequestHeader set "x-webobjects-server-name" ""
RequestHeader set "x-webobjects-server-url" "";

## 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"
RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e

AddDefaultCharset UTF-8

Order allow,deny
Allow from all

## We use mod_rewrite to pass remote address to the SOGo proxy.
# The remote address will appear in SOGo's log files and in the X-Forward
# header of emails.
RewriteEngine On
RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]

I am pretty sure it is proxy related, but I am at a loss at this point.
Any help is welcome.


This email is free from viruses and malware because avast! Antivirus
protection is active.

  • [SOGo] Mixup with proxy setup - Service Temporarily Unavailable, Dominique, 07/29/2014

Archive powered by MHonArc 2.6.18.

Top of page