I've been struggling with redirecting sessions that
connect on port 80 to our Outlook Web Access (Windows
Server 2003 & Exchange 2003) to HTTPS on Port 443.
I've tried changing the custom error message for 403.4 on
the Exchange VS to point to a URL /owaasp/owahttps.asp
with the following code, however when I enable it and
restart IIS Admin Service, instead of the redirect
happening sessions that connect on Port 80 get error 403
Access Denied:
<%
If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL &
Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & "/exchange"
Response.Redirect strSecureURL
End If
%>
I have the Exchange VS set to Basic Authentication & Force
SSL & the /owaasp directory set to allow anonymous
connections. The directory structure is as follows:
C:\inetpub\wwwroot\owaasp\owahttps.asp
C:\Program Files\Exchsrvr\exchweb\bin
If I manually run the owahttps.asp page it redirects fine,
however it doesn't work like the following KB article
states:
http://support.microsoft.com/default.aspx?
scid=http://support.microsoft.com:80/support/kb/articles/Q2
79/6/81.ASP&NoWebContent=1
Someone suggested using the following code, which works if
I envoke it manually, but not of I replace the 403.4
error.htm page with this code:
<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=https://mail.ocasf.org/exchange";>
</head>
<body></body>
</html>