NameVirtualHost 0.0.0.0:443
<VirtualHost 0.0.0.0:443>
    Servername mega.local
    CustomLog /var/log/apache2/access.log combined
    SSLEngine on

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

ProxyPassInterpolateEnv On
#for CalDAV
ProxyPass /SOGo http://127.0.0.1:20000/SOGo interpolate

<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-name" "mega.local:443"
  RequestHeader set "x-webobjects-server-url" "https://mega.local:443"
  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>
