Wednesday, September 30, 2015

apache 2.2 - Proxy Exchange Server using mod_proxy

I'm having a problem getting my Exchange Server to work with mod_proxy. This is my current VirtualHost config:




ServerName mail.example.com
ServerAlias www.mail.example.com
ProxyPass / http://localhost:446/
ProxyPassReverse / http://localhost:446/
ProxyRequests Off




I set IIS to listen for HTTPS on port 446. But when I try to connect to mail.example.com it just loads forever. The reason why I want it to proxy is to setup HTTPS on our main domain. We previously had it setup that the HTTPS would go to Exchange directly (from our root domain). If you want more config files just ask. We are running Windows Server 2012 and the latest Xampp.



As requested, the Error.log from Apache:



[Thu Oct 16 04:43:08.921973 2014] [core:warn] [pid 10340:tid 348] AH00098: pid file B:/Xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Oct 16 04:43:09.140744 2014] [ssl:warn] [pid 10340:tid 348] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Oct 16 04:43:09.195432 2014] [mpm_winnt:notice] [pid 10340:tid 348] AH00455: Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15 configured -- resuming normal operations
[Thu Oct 16 04:43:09.195432 2014] [mpm_winnt:notice] [pid 10340:tid 348] AH00456: Apache Lounge VC11 Server built: Jul 17 2014 11:50:08
[Thu Oct 16 04:43:09.195432 2014] [core:notice] [pid 10340:tid 348] AH00094: Command line: 'b:\\xampp\\apache\\bin\\httpd.exe -d B:/Xampp/apache'

[Thu Oct 16 04:43:09.197320 2014] [mpm_winnt:notice] [pid 10340:tid 348] AH00418: Parent: Created child process 18308
[Thu Oct 16 04:43:10.204176 2014] [ssl:warn] [pid 18308:tid 412] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Oct 16 04:43:10.258860 2014] [mpm_winnt:notice] [pid 18308:tid 412] AH00354: Child: Starting 150 worker threads.


Thanks for the help and sorry if this has been asked before.



EDIT
I'm now using the following block. But I can't seem to bind to the HTTPS port (443)





ServerName mail.example.com
ServerAlias www.mail.example.com
SSLProxyEngine on
RequestHeader set Front-End-Https "On"
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPass / https://localhost:446/
ProxyPassReverse / https://localhost:446/

ProxyRequests On
ProxyPreserveHost On

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...