Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: HowTo: Apache as Reverse-Proxy for Exchange & ActiveSync |
|
Author |
|
jraute
Joined: 13 Sep 2013 Posts: 188 Location: Rheinland, Germany
|
Posted: Tue 21 Oct '14 10:02 Post subject: HowTo: Apache as Reverse-Proxy for Exchange & ActiveSync |
|
|
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 |
|
|
|
|
|
|