Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using SSL on specific pages

Status
Not open for further replies.

brs154

IS-IT--Management
Jun 2, 2003
22
0
0
US
Hello,
We are running an IIS 5 web server. Internally we are running a web site accessed through standard HTTP (port 80). We have a certifcate installed on the top-level of site, i.e. abc.com. From the internet we allow HTTPS traffic through the firewall to access the site. I would like to also allow standard HTTP traffic through the firewall to the site, but want to keep certain pages strictly HTTPS. Is there a way to easily do this?
Thanks in Advance
 
You might get more answers if your question wasn't shown as a news item.

but you will need to use a sub-domain as your secure area.



Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
Sorry, I must have done that wrong when I created it.

Unfortunately the web site is preconfigured and I need to encrypt certain pages. I wish I could redirect to a sub-domain.
Thanks Anyway

 
If all you want to do is make these pages viewable through SSL, you would simply open up IIS, select the page in question, view it's properties and select the File Security tab. Then click 'edit' on Secure Communications and tick both SSL boxes at the top. Anyone would then have to navigate to these pages using https instead of http.

If you want users to automatically be redirected to a https page even if they type http, do this:-

Create a text file and copy the code below into it exactly as it appears here:

<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta http-equiv="refresh" content="0;url=https://yourdomain.com/yoursecurepage.html"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title></title> </head>

</html>

Next, edit the section which reads ' within the above script to suit your own domain and secure page.
Now, save your text file as something like, "secure.html" and place it on your web server under "C:\WINDOWS\Help\iisHelp\common" or a similar path. Next, open up IIS again and navigate to the page you just made secure. View it's properties, and click the 'Custom Errors' tab. Click on HTTP Error 403.3, and press 'Edit'. Enter the path to the HTML file you just created in the 'File' box (or browse to your new HTML file using the Browse button). Once you have entered the path, press OK then OK again and exit IIS. Navigate to your secure page using http and this should automatically redirect you to your secure page!.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top