Exchange 2013 - Reverse Proxy

Posted on 2014-01-14
Last Modified: 2014-02-02

I know you all will need additional information but I will keep it simple and hopefully its enough to direct further details.

Simple enough. I have an essentials 2012 server (actually standard with the essentials role). One IP adress, one internet connection. On premise Exchange 2013 on separate box you must use a reverse proxy details here. I had a difficult time with the end of the document installing ARR in that, at least for me, the exe was not where it was suppose to be. This led to repeating steps and eventually to here where at step 5 internal and external are the same (sounds good to me) and this script was executed:

$HostName = "server2"
Set-EcpVirtualDirectory "$HostName\ECP (Default Web Site)" -InternalUrl ((Get-EcpVirtualDirectory "$HostName\ECP (Default Web Site)").ExternalUrl)
Set-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)" -InternalUrl ((get-WebServicesVirtualDirectory "$HostName\EWS (Default Web Site)").ExternalUrl)
Set-ActiveSyncVirtualDirectory "$HostName\Microsoft-Server-ActiveSync (Default Web Site)" -InternalUrl ((Get-ActiveSyncVirtualDirectory "$HostName\Microsoft-Server-ActiveSync (Default Web Site)").ExternalUrl)
Set-OabVirtualDirectory "$HostName\OAB (Default Web Site)" -InternalUrl ((Get-OabVirtualDirectory "$HostName\OAB (Default Web Site)").ExternalUrl)
Set-OwaVirtualDirectory "$HostName\OWA (Default Web Site)" -InternalUrl ((Get-OwaVirtualDirectory "$HostName\OWA (Default Web Site)").ExternalUrl)
Set-PowerShellVirtualDirectory "$HostName\PowerShell (Default Web Site)" -InternalUrl ((Get-PowerShellVirtualDirectory "$HostName\PowerShell (Default Web Site)").ExternalUrl)
Set-ClientAccessServer $HostName -AutoDiscoverServiceInternalUri ((Get-ClientAccessServer $HostName).AutoDiscoverServiceInternalUri.AbsoluteUri).Replace(((Get-ExchangeServer $HostName).Fqdn.ToLower()),((Get-OutlookAnywhere).InternalHostName.HostNameString))

Open in new window

In addition it was not clear to me whether in the examples meant the name of the server (mine is or if it was referring to as in the external DNS entry. So I have a forward lookup zone for both. Probably not good.

The problem. In all cases internal and external,, etc. All point to owa. I have tested autodiscover with Active Synch and it fails (again) on the MS connectivity analyzer site.

So I have virtual directories, unclear (to me) examples, reverse proxy, url rewrites, DNS private and public and I am unsure of where to look. Oh and I have looked here and I am done when I get to the first health check.

So what should I look at first?
Question by:mohrk
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3

Author Comment

ID: 39780869
Is the problem in my url rewrite rule? This is what I get internally
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39782201

The first thing I would look at is your DNS. Do you have split-DNS setup? This is where you have the same zone publish on an external and internal DNS server but the zones are completely separate. The internal DNS server has your private IPs and the external DNS has your public IPs. If you aren't using split-DNS, your internal and external URLs will need to be different and your SSL cert will need to have hostnames for both your internal and public DNS zones. Note that if your internal DNS zone is a private non-internet zone (suck as .local) you will not be able to get a cert with that zone on it.


Author Comment

ID: 39782880
Hi JJ,

Thanks for answering. To the first part, yes, split DNS is setup however  was unclear about whether the examples that gave referred to the URL externally or internally. So internally I have a forward look-up zone configured as specified in the document with the ip address of the Exchange server. The zone refers to The main domain is with being my public domain. Due to some confusion about the examples with I am now wondering if that is the FQDN of the internal server or that is the FQDN of the public domain that is then used to reroute the request to server2. So, I have both.

Zones are and both point to the same ip. I do not think this is good.

In the meantime I have also developed an issue with Anywhere Access. They speak of an iis issue and form there I am not sure.

I have a wildcard cert.
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

LVL 37

Accepted Solution

Jamie McKillop earned 500 total points
ID: 39782910
If you actually have split-DNS, you would use the same hostname to reference the server internally and externally. Something like You public DNS server would resolve that name to a public IP and your internal DNS servers would resolve that name to an internal IP. Is that the case?


Author Comment

ID: 39783310
I am confused then.

My external DNS would resolve to my one and only external IP address. The router through port 443 forwarding sends the request to iis server1. iis server1 is supposed to read the url and send the request to iis on server2. This configuration, as described by Microsoft, is a split DNS/Reverse proxy.  

So server1 has a FQDN internally as I would like and thought I was configuring  to respond both internally and externally with exchange. This I thought was what MS was recommending and sounded good to me.

So DNS has 2 FLZ both pointing to the same ip.

Author Comment

ID: 39789688
Well no matter. I somehow "missed" that 2012 R2 + Exchange 2010 or Exchange 2013 are UNSUPPORTED.

I called MS and that is what they said. I showed them the documentation that was linked within their product (2012 R2 with Essentials role) that made no mention of this. I got pointed to some obscure bog that did say this. So I am stuck with 2 broken servers one that has to start at bare metal and hopefully I can salvage the other with the backups I immediately start after a OS install.

Author Comment

ID: 39799502
Well I am not sure why the assistance was lacking. Product configuration to new?

Author Comment

ID: 39810656
If I can get the attention of the moderators, The points should really go (all of them) to jjmck.

The response was what I needed to do despite the vagueness of MS documentation.
LVL 37

Expert Comment

by:Jamie McKillop
ID: 39811930
Click "Request Attention" below you question to get the moderators.


Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to install and use the NTBackup utility that comes with Windows Server.
In-place Upgrading Dirsync to Azure AD Connect
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video discusses moving either the default database or any database to a new volume.

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question