<IfModule mod_proxy.c>
  ProxyRequests Off
  SetEnv proxy-nokeepalive 1
  ProxyPreserveHost On

  ProxyPass /autodiscover http://127.0.0.1:5000/autodiscover retry=0
  ProxyPass /ews http://127.0.0.1:5000/ews retry=0
  ProxyPass /_debug http://127.0.0.1:5000/_debug retry=0

  <Proxy http://127.0.0.1:5000>
    Order allow,deny
    Allow from all
  </Proxy>
</IfModule>
