Solved

How to configure IIS/DNS to redirect to OWA virtual directory

Posted on 2009-04-03
10
737 Views
Last Modified: 2012-05-06
My company is running Win2K3 with Exchange 2003 installed.  This machine is also hosting our certificate services for exchange/https mail download.  OWA is also running on this machine as well.

Basically when users go to access OWA from the web they have to type in https://servername1.companyname.com/exchange.  I want to shorten this down to just https://mail.companyname.com.  My ISP DNS is setup with a single A record for 'servername' pointing to my external IP.  

Can anyone tell me what the easiest way to accomplish this is without any disruptions or downtime?

0
Comment
Question by:jmtoman
[X]
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
  • 5
  • 4
10 Comments
 
LVL 6

Assisted Solution

by:page1985
page1985 earned 200 total points
ID: 24062153
Absolutely.  You'll want to do three things:
  1. In your ISP's DNS  for your domain name, you will want to create another A record pointing mail.companyname.com to the same address as servername1.companyname.com
  2. On your OWA server, you'll need to check the properties of the HTTP virutal server that OWA is running on to make sure either you don't have host names specified, or that you add mail.companyname.com to the listener list.
  3. You will want to enable the .NET Framework on your virtual server and create a file in the root of the site (usually C:\Inetpub\wwwroot) named Default.aspx with the following contents:
<%
     Response.Redirect("https://mail.companyname.com/exchange")
%>

Open in new window

0
 

Author Comment

by:jmtoman
ID: 24062665
Ok that sounds simple enough, the other thing I just throught of is roughly half my users are getting exchange via http download.  When I'm setting up the Outlook profile I only specify mailserver.company.com and not mailserver.company.com/exchange, will this redirection have any effect on those users?
0
 

Author Comment

by:jmtoman
ID: 24063451
Ok I added the default.aspx page and when I try https://mailserver.company.com it redirects to the /exchange directory, but ONLY internally.
0
Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

 
LVL 65

Accepted Solution

by:
Mestha earned 300 total points
ID: 24064477
This is how I do it:
http://www.amset.info/exchange/owa-defaultpage.asp

Doesn't matter how the server is referenced, so it could be http://server or http://192.168.1.1/ or https://something.example.com/ it will redirect to the /exchange virtual directory.

Simon.
0
 

Author Comment

by:jmtoman
ID: 24076942
Ok so I've used both methods to redirect my default website to my /exchange directory and it ONLY works internally.  I'm a little bit confused?  Anyone have any ideas?
0
 
LVL 65

Expert Comment

by:Mestha
ID: 24077340
Are you going through anything else between the internet and the server?
What happens when you hit the root of the site? It shouldn't matter if it is inside or outside because Exchange simply doesn't care. It is just inbound traffic.

Simon.
0
 

Author Comment

by:jmtoman
ID: 24078157
ISA server between internet and server.  When I hit the root of the site it goes to owa fine.  Would it make any difference if my /exchange directory is set to use integrated windows authenticated and my default site is not?
0
 
LVL 65

Expert Comment

by:Mestha
ID: 24083116
The /exchange virtual directory needs to use integrated, so that is fine.
However as you are using ISA, I would be looking at that as the cause of the problem. If it works internally then it isn't an Exchange configuration issue.

Simon.
0
 

Author Comment

by:jmtoman
ID: 24089700
You were right on the money, it looks like we had some errors in our web publishing rule on isa server.  So now when i go to https://mailserver.companyname.com it is redirecting me correctly.

I added a cname record with my isp for mail.companyname.com but here is the kicker now, when i go to the website it will give me the error message for being an untrusted certificate but when i click continue anyway it just gives me a 403.  
0
 
LVL 65

Expert Comment

by:Mestha
ID: 24089933
A CNAME doesn't redirect you, so if you don't have mail.example.com in the certificate then you would get an error. I don't have much to do with ISA server, but I do know that ISA can store a copy of the certificate as well as the Exchange server. If your SSL certificate does contain the name then I would check if ISA is using the right certificate.

Simon.
0

Featured Post

What, When and Where - Security Threats from Q1

Join Corey Nachreiner, CTO, and Marc Laliberte, Information Security Threat Analyst, on July 26th as they explore their key findings from the first quarter of 2017.

Question has a verified solution.

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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

630 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