Forcing SSL
Now we are going to look at how to set this up so that the user has to use SSL to access the website, and will be redirected to the secure port even if they type in the unsecured (HTTP) port. First, we need to go into the C:\inetpub\wwwroot directory and create a folder called Owaasp. You can see that in Figure 7.
Next up we have to actually create a file called owahttps.asp and put it into the directory we previously specified. The content of the file is included in Listing 8. Trust me when I tell you that I don’t code. I copied and pasted this information from a Q article off Technet!
<%
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
%>
Now that we have done that we need to go to the properties of the Exchange Virtual Directory inside Internet Services Manager. We are going to go to the Custom Error Messages Tab. Take a look at Figure 9 to see where we are at.
Once on the Custom Errors tab we will need to edit the properties of error 403.4. We are going to provide the information included in Figure 10.