Mobile app version of vmapp.org
Login or Join
Shakeerah822

: How can I set the default page for an https request? We have a website which has a Virtual Directory containing the secure portion of the website. If users come to http://www.mydomain.com,

@Shakeerah822

Posted in: #Https #Iis #Iis6 #SecurityCertificate #WindowsServer2003

We have a website which has a Virtual Directory containing the secure portion of the website.

If users come to www.mydomain.com, they should get directed to default.aspx of the main site, but if they go to www.mydomain.com, they should go to default.aspx of the virtual directory.

The default page for the main site works fine, as does the secure page if I navigate to it using the full name, however I can't figure out how to set the default page for https traffic that doesn't specify a specific page.

www.mydomain.com - Works www.mydomain.com - Page Not Found www.mydomain.com/myvirtualdirectory - Page Not Found www.mydomain.com/myvirtualdirectory/default.aspx - Works


What do I need to do to make links 2 and 3 load the default page show in 4?

My website is running on IIS 6.0 in Windows Server 2003

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Shakeerah822

4 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

Scott Forsyth - MVP's answer to 'Different file locations for http v https on IIS?' suggests that you look at Failed Request Tracing to help identify the fault, I'd also suggest checking the IIS logs to see exactly what is happening to the request for default.aspx, it must be going somewhere!

10% popularity Vote Up Vote Down


 

@XinRu657

It sounds as though you will need to set up default documents for the secure site, as described in Setting Up Default Documents from the IIS 6.0 documentation:



In IIS Manager, double-click the local computer, right-click the Web Sites folder or an individual Web site folder, and then click
Properties.


Note: Configuration settings made at the Web Sites level are inherited
by all of the Web sites on the server. You can override inheritance by
configuring the individual site or site element.


Click the Documents tab.
Select the Enable default content page check box.
Click Add to add a new default document to the list.

10% popularity Vote Up Vote Down


 

@Goswami781

The easy way to redirect could possibly lie in doing a 301 from your option 2 & 3 listed above.

In essence make a default page that the user lands on and set that to automatically redirect to the desired page?

10% popularity Vote Up Vote Down


 

@Cofer257

I think you have to enable https in IIS itself. The following links will help
support.microsoft.com/?id=324069 support.microsoft.com/?id=298805

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme