redirect http to https for virtual directories

From: Arif (anonymous_at_discussions.microsoft.com)
Date: 04/11/04


Date: Sat, 10 Apr 2004 16:00:53 -0700

Hi,
I have a web server with the following configuration;
1. Anonymous Access is turned on
2. SSL certificate is installed and required
3. Custom Error 403.4 page is edited to redirect
http://servername to https:///servername
4. Couple of Virtual Directories (one with classic ASP
and the other one with ASP.Net applications)
5. Anonymous Access is TURNED OFF at the virtual
directories level because of the application requirements

The http to https redirect at the root level
(http://servername) is working fine. But I need to have
http to https redirect at the virtual directory level. I
have the same code that I am using in the custom error
page in defaul.asp page in my virtual directory. Since
the anonymous access is turned on, it asks for the
authentication and once authenticated it processes the
http to https redirect. So the redirect is working but
for obvious reason, I cannot have this in production
becuase the initial authentication is done over simple
text.

If I do not have the code in "default.asp" page to
redirect to https, then I get JUST "HTTP Error 403 -
Forbidden".

Can anyone please help me how to configure the http to
https for a URL like http://servername/aspapp/, the
default page is "default.asp"??? Keep in mind, I have to
have ONLY Basic Authentication. (I can live with
unchecking the Require SSL at the virtual directory level
if it is assured that all the contents are being
redirected to HTTPS).

Thanks in advance for your help.
Arif



Relevant Pages

  • Re: redirect http to https for virtual directories
    ... Did you setup httpredirect.asp as the 403.4 custom error for the virtual ... at the URL and if it comes over "80" redirect to ... httpredirect.asp BUT ASKS FOR THE AUTHENTICATION even ... 403.4 custom error not handling http to https redirects ...
    (microsoft.public.inetserver.iis)
  • Re: http://companyname/remote no longer redirects or works
    ... It seems that the SBSFLT ISAPI filter is missing. ... The filter is used to redirect all incoming ... RWW requests from HTTP to HTTPS if SSL is enabled. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)
  • redirect http to https for virtual directories
    ... Custom Error 403.4 page is edited to redirect ... http to https redirect at the virtual directory level. ...
    (microsoft.public.inetserver.iis)
  • Re: redirect http to https for virtual directories
    ... at the URL and if it comes over "80" redirect to ... Enable anonymous access and unchecked the Require SSL ... If proper authentication is provided, ... custom error not handling http to https redirects ...
    (microsoft.public.inetserver.iis)
  • RE: HTTPS automatic redirection
    ... but there's no redirection to https. ... Don't want to do a static redirect, ... client will be ... >automatically redirected to the HTTPS Web site. ...
    (microsoft.public.inetserver.iis.security)