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:

proxy
headers

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 ):

<VirtualHost 1.2.3.4:80>
ServerName exmail.admininfo.ca
DocumentRoot /var/www/html/exchange
RedirectMatch ^/(index.html?)$ https://exmail.admininfo.ca/exchange/
RedirectMatch ^/exchange$ https://exmail.admininfo.ca/exchange/
</VirtualHost>

<VirtualHost 1.2.3.4:443>
# 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
</VirtualHost>

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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: