Posts Tagged “apache”

Took my first kick at setting up VMWare ESXi 3.5 U3 tonight.  Result: Fail.  ESXi wouldn’t recognize the IDE hard drive on my ASUS A8N-SLI Premium motherboard.  Some information online shows ESXi will recognize the IDE drive if I enable RAID mode on the motherboard or if I use a SATA drive instead.  Sooooo might have to buy a 500GB SATA drive from Memory Express – my new personal vendor of choice.  Oh well, can’t really go wrong with another 1/2 terabyte of storage to play with.  The plan is run SATA RAID-1 so I’d be buying two 500gb drives anyways.

Following up to an older blog post, getting Outlook Anywhere (RPC over HTTP) to reverse-proxy with a half-recent version of Apache is pretty damn impossible.  It’s also pretty hard getting an older version of Apache 2.0.x to build cleanly on modern Linux but it’s a good learning experience.

Fun stuff, honest!

Comments Comments Off

In many environments, putting an Exchange 2007 front-end server directly on the Internet is not a desired configuration – either because of technical limitations or security concerns.  One solution is to have an Apache HTTP server on the network perimeter to act as a reverse proxy to an internally located Exchange 2007 server.  The following example is an Apache configuration to:

  • Redirect browsers from to the secure
  • Redirect from the root of to – you may wish to redirect to /owa if you use a pure Exchange 2007 environment.
  • Any requests to the* will be dynamically tunneled through Apache’s reverse proxy to the internal Exchange system and served back to the client.

The main advantage of the below configuration is that using the ReWriteRule directive with the [P] parameter (Proxy), we can avoid having many individual ProxyPass and ProxyPassReverse directives for each of the Exchange 2007 virtual directories.  Nice, clean, simple.

ProxyRequests Off
  #ErrorLog /var/log/apache2/
  #CustomLog /var/log/apache2/ combined

  ProxyPreserveHost On
  RewriteEngine on
  # Redirect http traffic to https
  RewriteRule ^/(.*)$$1 [L,R]

  #ErrorLog /var/log/apache2/
  #TransferLog /var/log/apache2/
  #CustomLog /var/log/apache2/ ssl_combined

  SSLEngine on
  SSLProxyEngine On
  RequestHeader set Front-End-Https "On"
  ProxyPreserveHost On
  RewriteEngine on
  CacheDisable *

  # Rewrite the WWW-Authenticate header to strip out Windows Integrated
  # Authentication (NTLM) and only use Basic-Auth
  SetEnvIf User-Agent ".*MSIE.*" value BrowserMSIE
  Header unset WWW-Authenticate
  Header add WWW-Authenticate "Basic"  

  # Redirect / to /exchange
  RewriteRule ^/$    [R]

  # Reverse proxy all requests to the internal Exchange 2007 server
  RewriteRule ^/(.*)          https://exchange.domain.internal/$1 [P]

  SSLCertificateFile /etc/apache2/ssl.crt/
  SSLCertificateKeyFile /etc/apache2/ssl.key/

  SetEnvIf User-Agent ".*MSIE.*"    \
  nokeepalive ssl-unclean-shutdown  \
  downgrade-1.0 force-response-1.0

Comments 40 Comments »