Network Administrator Knowledgebase

Nov 29 2008   4:54PM GMT

Outlook Web Access (OWA) on Apache in DMZ ;)

Michael Khanin Michael Khanin Profile: Michael Khanin

Using Apache 2 with Outlook Web Access (OWA) it’s very easy. This solution is even working when Apache installed on Windows XP and this solution can save a lot of money :), not necessary to buy Windows Server, additional Exchange Server licence or ISA Server. First, we need to enable some useful modules:


Now, we need to edit / create a VirtualHost section (or use Include conf/extra/httpd-vhosts. conf, remember to make following changes inside httpd-vhosts. conf ):

DocumentRoot /var/www/html/exchange
RedirectMatch ^/(index.html?)$
RedirectMatch ^/exchange$

# This secures the server from being used as a third party
# proxy server
ProxyRequests Off

# Allows the proxying of a SSL connection
SSLProxyEngine On
ProxyVia On

DocumentRoot /home/user/mail_proxy/html/
RequestHeader set Front-End-Https “On”

ServerName mail

# Set up SSL to work with this host
SSLEngine On
SSLCertificateFile /etc/apache/webmail-proxy/server.crt
SSLCertificateKeyFile /etc/apache/webmail-proxy/server.key

SSLProxyMachineCertificateFile /etc/apache/webmail-proxy/certnew.cer

ProxyPass /exchange/ https://mail-internal/exchange/
ProxyPassReverse /exchange/ https://mail-internal/exchange/

ProxyPass /exchweb/ https://mail-internal/exchweb/
ProxyPassReverse /exchweb/ https://mail-internal/exchweb/

ProxyPass /public/ https://mail-internal/public/
ProxyPassReverse /public/ https://mail-internal/public/

ProxyPreserveHost On

NOTE: If you are using Apache on Windows, remember to make changes accordingly.

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: