Re: Https Redirects with IIS?
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 08/07/04
- Next message: JasonHaung8888: "IIS 4 +mdac"
- Previous message: Anthony: "Only I can connect to IIS"
- In reply to: Ryan: "Re: Https Redirects with IIS?"
- Next in thread: Ryan: "Re: Https Redirects with IIS?"
- Reply: Ryan: "Re: Https Redirects with IIS?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 7 Aug 2004 00:08:34 -0700
You can map .htm to ASP.DLL (just like .asp is mapped to ASP.DLL).
>From IIS's perspective, the only reason .ASP is processed as a script and
.HTM is processed as a static file is because of the .ASP ScriptMap. So,
you can scriptmap .HTM to ASP.DLL, and then IIS will also process .HTM as an
"ASP script".
The only thing you lose here is that .htm files get treated as "script"
(i.e. processed by ASP.DLL) and not "static file" (i.e. processed directly
by IIS). There is a ~10x performance/scalability hit with this change, but
you may be able to get away with it if performance is still sufficient.
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Ryan" <google.20.nikespex@neverbox.com> wrote in message news:b4bbc7f2.0408041043.2a796d97@posting.google.com... Paul Lynch <paul.lynch@nospam.com> wrote in message news:<46q1h0di7p9m4b8772c2bn56iv4qs51ni3@4ax.com>... > On 4 Aug 2004 06:34:31 -0700, google.20.nikespex@neverbox.com (Ryan) > wrote: > > >I am currently managing a large web site of static (.htm) pages that > >reside on an IIS 5 server. Random files within this site should > >always be browsed via https. It is not possible to gather these files > >into a common directory, nor is it feasible to reference them via > >fully qualified URLs(https://severname/directory/filename.htm). > >Ideally the server would switch back to standard http when not > >browsing these specific files. > > > >I believe on Apache I would be able to accomplish this by using > >mod_rewrite or a RewriteRule. Does IIS offer similar functionality? > >Suggestions for the best way to pull this off would be much > >appreciated. > > Ryan, > > Try this : > > HOW TO: Use ASP to Force SSL for Specific Pages > http://support.microsoft.com/?id=239875 > > > Regards, > > Paul Lynch > MCSE Thanks Paul. Unfortunately I am using static (.htm) files and converting them to ASP isn't an option. If you know of a way to make the server process the ASP include files without changing my file extensions, I'm all ears!
- Next message: JasonHaung8888: "IIS 4 +mdac"
- Previous message: Anthony: "Only I can connect to IIS"
- In reply to: Ryan: "Re: Https Redirects with IIS?"
- Next in thread: Ryan: "Re: Https Redirects with IIS?"
- Reply: Ryan: "Re: Https Redirects with IIS?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|