IIS Server Security - How can I use both http and https for the same website?

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server Security > November 2005 > How can I use both http and https for the same website?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How can I use both http and https for the same website?
blasapher@cox.net

2005-11-08, 6:28 pm

First of all, I'm new here; and just now learning IIS - so thanks for
being patient with me!

I have a website, www.mywebsite.com, that has default page of
default.aspx.

I have applied the SSL to the entire site.

Now, my customer would like to be able to do this:

They would like to go to www.mywebsite.com and have a page come up
(lets call it index.html) that is just a text page about the site.
Then, for those people who know about the site; they can type the
https://www.mywebsite.com and the default page will launch and they can
login to the database. How can I do this?


Any input is appreciated!
Steph

David Wang [Msft]

2005-11-08, 6:28 pm

Make the default page an ASP page, and write code in the page that checks if
the request is over SSL or not. If not over SSL, just output the text page
about the site. If over SSL, send page to do user login.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
<blasapher@cox.net> wrote in message
news:1131431017.468306.260660@f14g2000cwb.googlegroups.com...
First of all, I'm new here; and just now learning IIS - so thanks for
being patient with me!

I have a website, www.mywebsite.com, that has default page of
default.aspx.

I have applied the SSL to the entire site.

Now, my customer would like to be able to do this:

They would like to go to www.mywebsite.com and have a page come up
(lets call it index.html) that is just a text page about the site.
Then, for those people who know about the site; they can type the
https://www.mywebsite.com and the default page will launch and they can
login to the database. How can I do this?


Any input is appreciated!
Steph


karl levinson, mvp

2005-11-17, 2:51 am

Better yet, since the content in the http and https sites sounds to be
mutually exclusive, consider putting the http site files into one folder,
the https files into another folder, and serve up the two folders as two
different virtual servers, one listening only for HTTP and one that requires
HTTPS for access.

I think the theoretical problem with writing your own script for such
security is that it is elegant and less simple, so more chance for something
to go wrong or for a security problem to occur as compared to using the
checkboxes in IIS and mingling the code into one common folder / server
instance.


"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:e01bZ$C5FHA.252@TK2MSFTNGP15.phx.gbl...
> Make the default page an ASP page, and write code in the page that checks
> if
> the request is over SSL or not. If not over SSL, just output the text page
> about the site. If over SSL, send page to do user login.
>
> --
> //David
> IIS
> http://blogs.msdn.com/David.Wang
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> //
> <blasapher@cox.net> wrote in message
> news:1131431017.468306.260660@f14g2000cwb.googlegroups.com...
> First of all, I'm new here; and just now learning IIS - so thanks for
> being patient with me!
>
> I have a website, www.mywebsite.com, that has default page of
> default.aspx.
>
> I have applied the SSL to the entire site.
>
> Now, my customer would like to be able to do this:
>
> They would like to go to www.mywebsite.com and have a page come up
> (lets call it index.html) that is just a text page about the site.
> Then, for those people who know about the site; they can type the
> https://www.mywebsite.com and the default page will launch and they can
> login to the database. How can I do this?
>
>
> Any input is appreciated!
> Steph
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com