OTNAdmin
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
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
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
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
%>
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
The error when I browse to the page is "The Website Declined to SHow This Page" The website requires you to login
exchange.jpg
ASKER
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
Request you to once again cross vefiy your settings as per the http://support.microsoft.com/kb/839357
---------
Shree
ASKER
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?
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\logfil es\w3svc1
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\logfil
ASKER
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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.0E;+MS -RTC+LM+8) 403 4 5
2010-08-17 13:58:25 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
2010-08-17 13:58:26 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
2010-08-17 13:58:27 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
2010-08-17 13:58:29 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
2010-08-17 13:58:29 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
2010-08-17 13:58:30 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
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.
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.
ASKER
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
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
did you also setup the custom error for the main page
ASKER
This is what the custom error looks like under my default website
customerror.jpg
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;+M SIE+7.0;+W indows+NT+ 5.1;+.NET+ CLR+1.1.43 22;+.NET+C LR+2.0.507 27;+.NET+C LR+3.0.450 6.2152;+.N ET+CLR+3.5 .30729;+.N ET4.0C;+.N ET4.0E;+MS -RTC+LM+8) 403 4 5
can you try http://server/exchange
2010-08-17 13:58:25 W3SVC1 10.224.131.104 GET / - 80 - 10.224.102.137 Mozilla/4.0+(compatible;+M
can you try http://server/exchange
ASKER
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
ASKER
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
add it to the documents
then modify the custom error for 403.4 using the second asp file name
ASKER
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
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
ASKER
ok an how should the asp file look should it look like should like
<%
If Request.ServerVariables("H TTPS") = "off" Then
Response.Redirect "https://" & Request.ServerVariables("H TTP_HOST")
End If
%>
<%
If Request.ServerVariables("H
Response.Redirect "https://" & Request.ServerVariables("H
End If
%>
yes, that should work
ASKER
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
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
ASKER
the error below, is there another way
error.jpg
error.jpg
is anonymous access enabled for the default web site
ASKER
yes it is
ASKER
Here a Pic of my main IIS, is this what it is suppose to look like
main.jpg
main.jpg
can you provide an image of the home directory tab for the default web site
ASKER
The home directory
home.jpg
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
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
ASKER
something like this
error02.jpg
error02.jpg
i would set it back to the original
c:\inetpub\wwwroot
c:\inetpub\wwwroot
ASKER
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
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
ASKER
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
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
ASKER
to which one?
Both
ASKER
no luck, i tried that. I can browse to http://mycompany/exchange with no issues
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
<%
Response.Redirect("https://" & Request.ServerVariables("H
%>
dont forget to set it as default document