Moey_G
asked on
Redirect http to https link
Hi Everyone,
I have installed exchange 2003 server on Windows 2003 server and all is working fine. The only problem I am facing is when using owa 2003. I have installed a SSL certificate for this site and would like the user to be redirected when they type in http://owa.domain_name/exchange to the secure owa 2003 link https://owa.domain _name/exchange. The problem is they have to enter the "s" instead , which most users will not remember to do.
Is there a way to redirect them imminently to the secure site from the link with http:// ?
Regards,
Moey_G
I have installed exchange 2003 server on Windows 2003 server and all is working fine. The only problem I am facing is when using owa 2003. I have installed a SSL certificate for this site and would like the user to be redirected when they type in http://owa.domain_name/exchange to the secure owa 2003 link https://owa.domain _name/exchange. The problem is they have to enter the "s" instead , which most users will not remember to do.
Is there a way to redirect them imminently to the secure site from the link with http:// ?
Regards,
Moey_G
With this code in the index page you can send it to the secure server:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>OWA</TI TLE>
<META content=en-us http-equiv=Content-Languag e>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<META content=FrontPage.Editor.D ocument name=ProgId>
<meta http-equiv="refresh" content="5; url=https://owa.domain _name/exchange">
<meta name="keywords" content="automatic redirection">
</HEAD>
<BODY>
Sending to: https://owa.domain _name/exchange
</BODY></HTML>
Regards
Jorge Curioca
jcurioca@net.com.mx
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>OWA</TI
<META content=en-us http-equiv=Content-Languag
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<META content=FrontPage.Editor.D
<meta http-equiv="refresh" content="5; url=https://owa.domain _name/exchange">
<meta name="keywords" content="automatic redirection">
</HEAD>
<BODY>
Sending to: https://owa.domain _name/exchange
</BODY></HTML>
Regards
Jorge Curioca
jcurioca@net.com.mx
in iis manager
set the properties for the deault page to require secure communication
this forces https and redirects them i thought.
set the properties for the deault page to require secure communication
this forces https and redirects them i thought.
ASKER
Hi everyone,
thankyou for all your prompt replies. I have found a microsoft article that explains how to do this. Article number is 555126.
This all works well while you are logged internally to the network , but I want the same redirection to happen when a user types in their browser http://owa.domainname/exchange. Any ideas on this article or how to overcome this issue.
thankyou for all your prompt replies. I have found a microsoft article that explains how to do this. Article number is 555126.
This all works well while you are logged internally to the network , but I want the same redirection to happen when a user types in their browser http://owa.domainname/exchange. Any ideas on this article or how to overcome this issue.
I do this all the time. Here's the solution to get the redirect to work properly.
1. Go into the C:\inetpub\wwwroot directory and create a folder called "Owaasp"
2. Create a file called "owahttps.asp" and put it into the directory you created in #1 (owaasp)
3. Paste this code into the owahttps.asp file using notepad. Do not modify this file in any way!
<%
If Request.ServerVariables("S ERVER_PORT ")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("S ERVER_NAME ")
strSecureURL = strSecureURL & "/exchange"
Response.Redirect strSecureURL
End If
%>
Save the file.
4. Now open the IIS Manager
* Go to the properties of the Exchange Virtual Directory inside Internet Services Manager. There are several related to OWA, but just modify the one called "Exchange". Go to the Custom Error Messages Tab.
Once on the Custom Errors tab, edit the properties of error 403.4. The next step is very important. Select "Message Type" = URL
And for URL, type in this = /owaasp/owahttps.asp
Click Ok and exit.
5. If you have not already, go to the Directory Security Tab and select Edit under Certificates (from the Exchange Virtual Directory) and select to require SSL.
6. Make sure port 443 is open on the firewall and restart all IIS services by typing this:
net stop iisadmin /y
Click on START, RUN, then type Services.msc. Restart all the services that were stopped.
This will redirect client from http to https.
1. Go into the C:\inetpub\wwwroot directory and create a folder called "Owaasp"
2. Create a file called "owahttps.asp" and put it into the directory you created in #1 (owaasp)
3. Paste this code into the owahttps.asp file using notepad. Do not modify this file in any way!
<%
If Request.ServerVariables("S
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("S
strSecureURL = strSecureURL & "/exchange"
Response.Redirect strSecureURL
End If
%>
Save the file.
4. Now open the IIS Manager
* Go to the properties of the Exchange Virtual Directory inside Internet Services Manager. There are several related to OWA, but just modify the one called "Exchange". Go to the Custom Error Messages Tab.
Once on the Custom Errors tab, edit the properties of error 403.4. The next step is very important. Select "Message Type" = URL
And for URL, type in this = /owaasp/owahttps.asp
Click Ok and exit.
5. If you have not already, go to the Directory Security Tab and select Edit under Certificates (from the Exchange Virtual Directory) and select to require SSL.
6. Make sure port 443 is open on the firewall and restart all IIS services by typing this:
net stop iisadmin /y
Click on START, RUN, then type Services.msc. Restart all the services that were stopped.
This will redirect client from http to https.
ASKER
dazer1virginia,
I have already applied the above information but it stil has problems connecting to owa when requesting link from external connections. This works totally fine internally, but if a staff member was to connect to his mail remotely, they still have to place the https: instead of http: .
I have already applied the above information but it stil has problems connecting to owa when requesting link from external connections. This works totally fine internally, but if a staff member was to connect to his mail remotely, they still have to place the https: instead of http: .
Follow this document. It will work.
http://www.serverwatch.com/tutorials/article.php/10825_1561981_1
http://www.serverwatch.com/tutorials/article.php/10825_1561981_1
ASKER
this is the same article as the previous comment. It still does not explain why remote users are unable to connect to the exchange server using http: ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is what I on my websites:
<%
thispage = request.servervariables("S ERVER_NAME ") & request.servervariables("U RL"))
q = request.servervariables("Q UERY_STRIN G")
if len(q)<>0 then thispage = thispage &"?"& q
if ucase(request.serverVariab les("HTTPS "))<>"ON" then response.redirect "https://"& thispage
%>
<%
thispage = request.servervariables("S
q = request.servervariables("Q
if len(q)<>0 then thispage = thispage &"?"& q
if ucase(request.serverVariab
%>
<html>
<head>
</head>
<body>
<script language="javascript">
<!--
location.replace("https://owa.domain_name/exchange")
//-->
</script>
</body>
</html>