• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 573
  • Last Modified:

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
0
OTNAdmin
Asked:
OTNAdmin
  • 21
  • 20
  • 2
  • +1
1 Solution
 
P0rterCommented:
Use this as index.aspx

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

dont forget to set it as default document
0
 
Shreedhar EtteCommented:
Hi,

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

Hope this helps,
Shree
0
 
endital1097Commented:
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

0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
your custom errors tab should look like the following

custom-error.PNG
0
 
OTNAdminAuthor Commented:
my custom errors is setupthe exact same ways as yours
0
 
Shreedhar EtteCommented:
Hi OTNAdmin,

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

---------
Shree
0
 
OTNAdminAuthor Commented:
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?
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
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.
0
 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
This is what the custom error looks like under my default website
customerror.jpg
0
 
endital1097Commented:
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

0
 
OTNAdminAuthor Commented:
That works just fine, I can browse to that and it redirects me to the https link
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
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.
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
under which section should place the new asp file? the default web site? the Exchange virtual directory or Custom errors direcoty?
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
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

      %>
0
 
endital1097Commented:
yes, that should work
0
 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
what happens when they go to http://server
0
 
OTNAdminAuthor Commented:
the error below, is there another way
error.jpg
0
 
endital1097Commented:
is anonymous access enabled for the default web site
0
 
OTNAdminAuthor Commented:
yes it is
0
 
OTNAdminAuthor Commented:
Here a Pic of my main IIS, is this what it is suppose to look like
main.jpg
0
 
endital1097Commented:
can you provide an image of the home directory tab for the default web site
0
 
OTNAdminAuthor Commented:
The home directory
home.jpg
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
something like this
error02.jpg
0
 
endital1097Commented:
i would set it back to the original
c:\inetpub\wwwroot
0
 
OTNAdminAuthor Commented:
So i am not to sure what you mean by you other comment can you please clarifiy
0
 
endital1097Commented:
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
0
 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
you need to add the .asp file and move it to the top
0
 
OTNAdminAuthor Commented:
to which one?
0
 
endital1097Commented:
Both
0
 
OTNAdminAuthor Commented:
no luck, i tried that. I can browse to http://mycompany/exchange with no issues
0
 
endital1097Commented:
i check a working configuration and here is what i had done previously
on the default web site:
Home directory tab - a redirection to a URL = /exchange
                              - Application pool = ExchangeApplicationPool
Directory security tab - Anonymous enabled
                                  - Require SSL unchecked
Custom errors tab - 403;3  = /CustomErrors/owaredirect.asp

although you are not requiring SSL on the main page the redirect sends you to exhcange vdir which will go to SSL
0
 
OTNAdminAuthor Commented:
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
0
 
endital1097Commented:
woo hoo
0

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

  • 21
  • 20
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now