logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



HowTo: Apache as Reverse-Proxy for Exchange & ActiveSync

 
Post new topic   Reply to topic    Apache Forum Index -> How-to's & Documentation & Tips



View previous topic :: View next topic  
Author Message
jraute



Joined: 13 Sep 2013
Posts: 187
Location: Rheinland, Germany

PostPosted: Tue 21 Oct '14 10:02    Post subject: HowTo: Apache as Reverse-Proxy for Exchange & ActiveSync Reply with quote

This code helps to configure Apache as ssl wrapper for ssl/tls-connections from the internet to an internal exchange-server and as activesync-reverse-proxy.

Code:
<VirtualHost *:443>

   SSLEngine On

<Location /exchange>
   ProxyPreserveHost On
   ProxyPass http://exchange-server/exchange
   ProxyPassReverse http://exchange-server/exchange
   SetEnv proxy-initial-not-pooled
   SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
   Header unset WWW-Authenticate
   Header add WWW-Authenticate "Basic realm=server.domain.com"
</Location>

<Location /exchweb>
   ProxyPreserveHost On
   ProxyPass http://exchange-server/exchweb
   ProxyPassReverse http://exchange-server/exchweb
   SetEnv proxy-initial-not-pooled
   SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
   Header unset WWW-Authenticate
   Header add WWW-Authenticate "Basic realm=server.domain.com"
</Location>

<Location /public>
   ProxyPreserveHost On
   ProxyPass http://exchange-server/public
   ProxyPassReverse http://exchange-server/public
   SetEnv proxy-initial-not-pooled
   SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
   Header unset WWW-Authenticate
   Header add WWW-Authenticate "Basic realm=server.domain.com"
</Location>

<Location /Microsoft-Server-ActiveSync>
   ProxyPreserveHost On
   ProxyPass http://exchange-server/Microsoft-Server-ActiveSync acquire=3000 retry=60
   ProxyPassReverse http://exchange-server/Microsoft-Server-ActiveSync
   SetEnv proxy-initial-not-pooled
   SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
   Header unset WWW-Authenticate
   Header add WWW-Authenticate "Basic realm=server.domain.com"
</Location>   

<Location /owa>
   ProxyPass https://exchange-server/owa
   ProxyPassReverse https://exchange-server/owa
</Location>

<Location /rpc>
   ProxyPass https://exchange-server/rpc
   ProxyPassReverse https://exchange-server/rpc
</Location>

<Location /Rpc>
   ProxyPass https://exchange-server/Rpc
   ProxyPassReverse https://exchange-server/Rpc
</Location>

<Location /OAB>
   ProxyPass https://exchange-server/OAB
   ProxyPassReverse https://exchange-server/OAB
</Location>

<Location /ews>
   ProxyPass https://exchange-server/ews
   ProxyPassReverse https://exchange-server/ews
</Location>

</VirtualHost>
Back to top


Post new topic   Reply to topic    Apache Forum Index -> How-to's & Documentation & Tips
Page 1 of 1