Solved

IIS and https

Posted on 2003-10-21
6
775 Views
Last Modified: 2010-03-19
Everyone,

I have a site I'm currently running over port 80. My users go to http://something.domain.com to access the site. I would like to attach a certificate to the site, but don't want my users to have to type in httpS:// to get to it. Is there a way I can allow them to access the site as they always have, and have it automatically bounce over to the https:// address?

Thanks, let me know if I haven't been too clear.

Kris.
0
Comment
Question by:kristinaw
  • 3
  • 2
6 Comments
 
LVL 5

Accepted Solution

by:
koquito earned 200 total points
ID: 9592012
I beleive the best way you can do it is by modifying the error page, so that it redirects to the https automatically.
check this link
it will explain step by step what you need to do.
http://www.iisfaq.com/?View=A407&Print=1
0
 
LVL 22

Author Comment

by:kristinaw
ID: 10453523
I came up with my own solution to this. Please delete question.
0
 

Assisted Solution

by:joedboswell
joedboswell earned 200 total points
ID: 10682976
I am actually looking for an answer to this, if it is possible for you to post the steps you took I could really use it...  Rather than using a workaround like the one above if you have a working solution that would be awesome.

Joe
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 22

Author Comment

by:kristinaw
ID: 10683150
Joe,

I tried what koquito suggested and couldn't get it to work right from the outside. So, I found some VBscript code that automatically redirects the user over to 443. I'll look it up tomorrow at work at post the steps I took for you.

Kris.
0
 

Expert Comment

by:joedboswell
ID: 10683197

Kris,

Thanks, I appreciate it!

Joe
0
 
LVL 22

Author Comment

by:kristinaw
ID: 10687740
Joe,

Here's what I did. This was request originally had to do with my OWA site. I didn't want people to have to type the stupid /exchange to get into it, or put the httpS either. This little piece of vb code accomplishes both. All you have to do is copy this code into notepad and save it as an asp page in your default directory for the site you're working with, then enable it as the default document. In my case, this obviously prevents me from running anything else on the default web site, but that's OK for me.

<%

      If Request.ServerVariables("SERVER_PORT")=80 or Request.ServerVariables("SERVER_PORT")=443 Then
            Dim strSecureStr
            strSecureURL = "https://"
            strSecureURL = strSecureURL & "mail.domain.com"
            strSecureURL = strSecureURL & "/exchange"
            Response.Redirect strSecureURL
      End If
      

      %>

This code will basically take anything that comes in on port 80 OR port 443 and redirect it to https:// AND /exchange. If you're not redirecting to a virtual directory you'd just take that line out, and it would redirect anything coming in on 80 or 443 to httpS/.

hth,
Kris.

0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question