OWA redirection to https problem (Full Version)

All Forums >> [Microsoft Exchange 2007] >> Outlook Web Access



Message


RogerAas -> OWA redirection to https problem (14.Sep.2007 7:12:12 AM)

I want to simplify the way my users log on to OWA by doing two things, remove the need to type in the /owa and redirect automatically to https. I have problems making the redirection to https work as I want.

I want my users to be able to type in "exchangeserver.mydomain.com" instead of "https://exchangeserver.mydomain.com/owa" when they want to log in to OWA.

I have followed the TechNet article "How to Simplify the Outlook Web Access URL" at http://technet.microsoft.com/en-us/library/aa998359.aspx but there is one drawback to that solution. IE has a default setting of showing its own error messages. That means it will not load the custom error message and then will not get redirected.

If you turn off this behaviour in IE it works as expected.

I can of course easily do that to domain computers through GPO but the point was that this should work from anywhere, also on computers not under our control. Since our domain computers use Outlook 2007 it is mainly those other computers that will need this working well.

Is there a way to configure this so it works without requiring the users to change this setting in Internet Explorer?

The offending registry setting is this one: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Friendly http errors=yes

- Roger




jimthemcp -> RE: OWA redirection to https problem (19.Sep.2007 10:45:29 PM)

Yes, you can accomplish what you want.  Copy the following into a file called owa-redirect.asp and save it under c:\inetpub\wwwroot\CustomErrors
<%
If Request.ServerVariables("HTTPS") = "off" Then
Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST") & "/owa"
End If
%>

Then in IIS Manager ensure that your Default Web Site requires https, and modify the HTTP 403;4 error to use the URL /CustomErrors/owa-redirect.asp in the Custom Errors tab.  The last step is to modify the security tab for the CustomErrors folder in IIS Manager so that it does not require https.




RogerAas -> RE: OWA redirection to https problem (20.Sep.2007 8:10:27 AM)

Thanks, this worked.

I lost some time before I saw the word "URL" in your message. I used the "File" type for the Custom Errors setting just like on Technet, but that just displayed the asp-script in the browser, and not the result of the script. When I changed the type to URL it worked like it should.

- Roger




marcuslayton -> RE: OWA redirection to https problem (22.May2008 2:49:37 PM)

This also worked for me - txs for the post!

I may add that the windows security file permissions on the owa-redirect.asp must be readable to the user that is selected under 'authentication and access control' or you would recieve a 'Error: Access is Denied.' error.





skydive -> RE: OWA redirection to https problem (23.May2008 7:44:41 PM)

And to get rid of the use of the /owa switch, go to IIS on the default website's properties, under home directory and choose "Redirect to Folder" and check the box "A folder located under.." ( i can't remember exactly) and enter /owa in the path.
Restart IIS and you should be fine with entering www.yourdomain.com.

Cheers




t0ta11ed -> RE: OWA redirection to https problem (23.May2008 9:20:40 PM)

Ive done this recently myself, and it works fine if you use http, but if I access the owa url using https, I get a blank page in both IE and Firefox. Anyone seen this before?




skydive -> RE: OWA redirection to https problem (24.May2008 5:00:22 PM)

Have you changed the owa external/enternal URL in exchange to correspond to the /owa redirection you have in IIS?
The owa address in exchange in your case should be www.yourdomain.com and without the /owa.




t0ta11ed -> RE: OWA redirection to https problem (25.May2008 1:25:04 PM)

Actually, this was for Exch 2k3, read the thread and didn't realize it was in the 2007 secton. Sorry. 




chickendog -> RE: OWA redirection to https problem (29.May2008 8:56:01 AM)

Can some one help me fine the custome folders in IIS.  I need to edit the security to not require https and I can not figure out were this is.  Thanks.




Page: [1]