1#
2#
3#   Keep only one of those vhost definition, comment out the other one
4#
5#
6
7# for https
8# don't forget to add a Listen parameter for port 8843:
9# Listen 8843
10<VirtualHost *:8843>
11  ServerName YOUR.SERVER.NAME
12
13  SSLEngine on
14
15  SSLProtocol -ALL +SSLv3 +TLSv1
16  SSLHonorCipherOrder On
17  SSLCipherSuite HIGH:MEDIUM:!ADH:!aNULL:!eNULL:!NULL
18  SSLCertificateFile    /path/to/your/cert/cert.pem
19  SSLCertificateChainFile /path/to/your/cert/cert-chain-file.pem
20  SSLCertificateKeyFile /path/to/your/key/file.key
21
22  RewriteEngine Off
23  ProxyRequests Off
24  SetEnv proxy-nokeepalive 1
25  ProxyPreserveHost On
26  ProxyPassInterpolateEnv On
27  ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
28  ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate
29  ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate
30  <Location />
31    <IfVersion < 2.4>
32      Order deny,allow
33      Allow from all
34    </IfVersion>
35    <IfVersion >= 2.4>
36      Require all granted
37    </IfVersion>
38  </Location>
39
40  <Proxy http://127.0.0.1:20000>
41    RequestHeader set "x-webobjects-server-port" "8843"
42    RequestHeader set "x-webobjects-server-name" "CHANGETHIS:8843"
43    RequestHeader set "x-webobjects-server-url" "http://CHANGETHIS:8843"
44    RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
45    AddDefaultCharset UTF-8
46  </Proxy>
47
48  ErrorLog /var/log/apache2/ab-error.log
49  CustomLog /var/log/apache2/ab-access.log combined
50</VirtualHost>
51
52# plain http
53# Same here, don't forget to add a Listen parameter for port 8800:
54# Listen 8800
55<VirtualHost *:8800>
56  RewriteEngine Off
57  ProxyRequests Off
58  SetEnv proxy-nokeepalive 1
59  ProxyPreserveHost On
60  ProxyPassInterpolateEnv On
61  ProxyPass /principals http://127.0.0.1:20000/SOGo/dav/ interpolate
62  ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate
63  ProxyPass / http://127.0.0.1:20000/SOGo/dav/ interpolate
64  <Location />
65    Order allow,deny
66    Allow from all
67  </Location>
68
69  <Proxy http://127.0.0.1:20000>
70    RequestHeader set "x-webobjects-server-port" "8800"
71    RequestHeader set "x-webobjects-server-name" "changethis:8800"
72    RequestHeader set "x-webobjects-server-url" "http://changethis:8800"
73    RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
74    AddDefaultCharset UTF-8
75  </Proxy>
76
77  ErrorLog /var/log/apache2/ab-error.log
78  CustomLog /var/log/apache2/ab-access.log combined
79</VirtualHost>
80