Link to home
Start Free TrialLog in
Avatar of OTNAdmin
OTNAdminFlag for Afghanistan

asked on

OWA redirect

Hi All

I am trying to setup a redirect for my OWA access. WE are currently using Server 2003 with exchange 2003. I have followed the steps in the following KB http://support.microsoft.com/kb/839357 
For the most part it is working. when I browse to http://mycompany/exchange it works but I want it so I can go to http://mycompany and it will redirect me to https://mycompany.
I followed the directions at the bottom of the KB mentioned above and it still does not work.

I am aware there are other methods but I would like to stike to this one
Avatar of P0rter
P0rter

Use this as index.aspx

<%
Response.Redirect("https://" & Request.ServerVariables("HTTP_HOST") & "/exchange")
%>

dont forget to set it as default document
Avatar of Shreedhar Ette
Hi,

Refer this:
http://www.amset.info/exchange/owa-defaultpage.asp

Hope this helps,
Shree
you need to create the custom errors folder and include an asp file with the following
then modify the error for 403 and use the /CustomErrors/yourasp.asp
<%

If Request.ServerVariables("HTTPS")  = "off" Then
	Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST") & "/Exchange"
End If

%>

Open in new window

Avatar of OTNAdmin

ASKER

I have followed both instructions above with no success. I have attached a pic to how my IIS looks. by all accounts this should be working.

The error when I browse to the page is "The Website Declined to SHow This Page" The website requires you to login
exchange.jpg
your custom errors tab should look like the following

custom-error.PNG
my custom errors is setupthe exact same ways as yours
Hi OTNAdmin,

Request you to once again cross vefiy your settings as per the http://support.microsoft.com/kb/839357 

---------
Shree
I have double and triple checked the settings and everthing is fine. I have just about given up on this. are there any logs I can post?

How would I go about setting up another redirection?
you can look at your iis logs
look for connections to /exchange on port 80
at the end of the line you should see an http error code

post a few lines from the logs
c:\windows\system32\logfiles\w3svc1
Here is the entry of me trying to access the website

2010-08-17 13:58:25 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
2010-08-17 13:58:26 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
2010-08-17 13:58:27 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
2010-08-17 13:58:29 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
2010-08-17 13:58:29 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
2010-08-17 13:58:30 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5
the custom error page is not being detected

Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
Expand Computer Name, and then expand Web Sites.
Expand the Web site that your OWA users use to access their Exchange server. By default, this Web site will be the Default Web Site.
Right-click the CustomErrors folder, and then click Properties.
Under the Application settings section, click Create.
Make sure that CustomErrors is displayed in the Application name box.
For Exchange 2003 running on IIS 6.0, click ExchangeApplicationPool in the Application Pool list.
Click the Documents tab, and then add the Owahttps.asp file to the Enable default content page. Move the Owahttps.asp file to the top of the list.
Click the Directory Security tab, and then click Edit under Authentication and access control.
Click to select Enable anonymous access, and then click OK.
Under Secure communications, click Edit.
Click to clear the Require secure channel (SSL) check box, and then click OK two times.
all the above steps are true.

I have attached a pic of my IIS screen when I right click on the owahttps.asp it comes up with a cert warning and when I ignore it i get to my webmail page
IIS.jpg
the connection attempts from your log are for the main site not the exchange vdir

did you also setup the custom error for the main page
This is what the custom error looks like under my default website
customerror.jpg
the line in your log shows that someone attempted to browse to http://server and that this site is set to require https

2010-08-17 13:58:25 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E;+MS-RTC+LM+8) 403 4 5


can you try http://server/exchange

That works just fine, I can browse to that and it redirects me to the https link
you need to modify the custom errors tab on the default web site, same as you did for exchange vdir, or remove teh require ssl
I have done that, with no luck. I do not want to remove the SSL option because if I do then i am losing my encryption.
you need to create a second asp file that does not include the /exchange at the end
add it to the documents
then modify the custom error for 403.4 using the second asp file name
under which section should place the new asp file? the default web site? the Exchange virtual directory or Custom errors direcoty?
put the actual file in the same directory (ex. mainredirect.asp)
add mainredirect.asp to the list under the documents tab for the main site and move it to the top
modify the custom error for the default web site using the mainredirect.asp
ok an how should the asp file look should it look like should like

 <%

If Request.ServerVariables("HTTPS")  = "off" Then
                                    Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST")
End If

      %>
yes, that should work
still no luck

I made the script mentioned above and place in in the Documents area and changed the cutom errors section of the default website
deafult.jpg
what happens when they go to http://server
the error below, is there another way
error.jpg
is anonymous access enabled for the default web site
yes it is
Here a Pic of my main IIS, is this what it is suppose to look like
main.jpg
can you provide an image of the home directory tab for the default web site
The home directory
home.jpg
remove the redirection to a url
it is redirecting to the exchange with http and since it is a redirect the custom error doesn't work

if you want http://server to redirect to https://server/exchange then switch this setting back to "A directory located on this computer" and use the custom error used for the exchnage vdir
something like this
error02.jpg
i would set it back to the original
c:\inetpub\wwwroot
So i am not to sure what you mean by you other comment can you please clarifiy
change that directory to c:\inetpub\wwwroot
at that point when you go to http:\\server you should be redirected to https:\\server

if you want this to send you to https:\\server\exchange (which i'm guessing you want based on the original redirect), you should change the custom error setting for 403.4 to the asp page used on the Exchange virtual directory custom error
I have made that change still with no luck, the custom errors tab on both the default web site and exchange virtual direcoty are the same.

I dont have anything loaded in the documents tab should ?
documents.jpg
you need to add the .asp file and move it to the top
to which one?
no luck, i tried that. I can browse to http://mycompany/exchange with no issues
ASKER CERTIFIED SOLUTION
Avatar of endital1097
endital1097
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
It is FINALLLY working thanks for all the help. I didnt have fo uncheck the requrie SSL on the default web site. Ifyou recall from you of my earlier posts the Home Directory under the default website is the section Appliction pool is DefaultAppPool. I took your advace and changed it to ExchangeApplicationPool and it started to work
woo hoo