Link to home
Start Free TrialLog in
Avatar of vbchewie
vbchewieFlag for United States of America

asked on

Redirect external traffic to /owa folder with IIS 6.0

We have 3 companies all using the same Exchange 2007 server.  I purchased a certificate that has subject alternative names for all 3 companies ie. mail.company1.com, mail.company2.com, and mail.comany3.com.  I want to tell the users to access owa they will need to type mail.company1.com, https://mail.company1.com, or http://mail.company.com.  Same goes for company 2 and 3.  How do get https://mail.company#.com, and http://mail.company#.com to redirect to https://mail.company#.com/owa?
ASKER CERTIFIED SOLUTION
Avatar of Pugglewuggle
Pugglewuggle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vbchewie

ASKER


1) I have installed the certificate on the default web site and it is working internally and externally.  By that I mean I get no certificate errors.

2) How do I setup host headers. (Yes I only have 1 owa folder all email accounts will connect to the same owa server. And they will use their upn for logging in.)
Thank you
Okay - so the site works from inside your network... good. Get host headers setup and then let me know.
Here is the procedure for setting up host headers:
http://www.visualwin.com/host-header/ 
BTW - you do have your DNS for all 3 companies pointed at this server?
I guess I already have the host header sites setup.  I have 3 websites excluding the default website.  One for each company.  Can I knock it down to just 1 header site if I add the mail.company2.com and mail.company3.com in the Advanced Web Site Identification -> Multiple indenties for this web site (part)?
I setup the 3 sites so on the Home Directory tab  I could redirect the url to the appropriate https://mail.company1.com/owa (I'm gussing this is not the right way).
Yes DNS for all companies will point to the same server.
Oh, well if you have those 3 sites setup then that makes it easier! Just make them redirect as you said! That's the advice I was going to give last night but I didn't know about your specific setup and needed the DNS info.
Yes, that's the way to do it (since IIS 6 can't use SSL host headers).
:) The only problem with this is going to be that you might have problems because IIS 6. Doesn't have SSL host headers.... let me know if that works but I don't think it will.
If you have all 3 sites (not sites in IIS, I mean internet domains) on the same port (443), and same IP address, and the same site in IIS, then it should automatically work for all 3 companies when the user accesses the site... it should take them all to the same place since IIS 6 doesn't use SSL host headers. Can you please confirm if this is happening?
Then, if this does work, and the user is going to the same place from all 3 domains, you can just add the little ASP file I sent earlier (just make sure ASP is enabled under Web Service Extensions). You don't actually have a website running on the default website do you?
As I have it now if someone goes to http://mail.company1.com it will redirect to https://mail.company1.com/owa.  However, if someone goes to https://mail.company1.com it will not redirect to https://mail.company1.com/owa.
How do I fix this?
Are you saying I just need to add the asp file you sent?
Yes that's right. Just put it in the root assuming that there's nothing else in there. Name it default.asp and let me know if that works.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I put the file in the inetpub\wwwroot.  The only file that is the documents tab for the default web site is the Default.asp, which I moved to the top.
If I type http://server internally I get the 403.4 error.  Externally if I type http://mail.comany1.com  it redirects but I think that is because Home Directory redirect to https://mail.company1.com/owa for the header site. However, if I go to https://mail.company1.com it gives me a 404 error.
Thank you
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Externally I can get to https://mail.company1.com/owa but when I got to http: or https: //mail.company1.com it does not redirect. I have attached some screen shots
Thank you

iismanager.JPG
AdvancedWeb.JPG
Can you please tell me the error you're getting? If you have set that the site can only be accessed by SSL you need to disable this for the redirection from http to https to occur.
I took the redirect off of the Home Directory.  When I go to https://mail.company1.com I get "The page cannot be found.  When I go to http://mail.company1.com I get  "The page must be viewed over a secure channel.
Thank You

HomeDir.JPG
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Okay now I get  "The page cannot be found." for both http://mail.company1.com and https://mail.company1.com Is it not picking up the redirect?  
Dude, check your public DNS and make sure its pointed to the right place. Everything in IIS is setup right. It's gotta be somewhere else now.
If I go to https://mail.company1.com/owa it works fine. Doesn't that mean the Public DNS is pointed to the right place?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, go to the directory with the command prompt and run dir to make sure the file isn't something like default.asp.txt.
I know you said ASP needed to be enabled before.  And ASP .net was allowed however Active Server Pages was not allowed.  It works now.  Thank You very much.
Thank you for your help and patients I really appreciate it.  You are a great help.