Home > DeveloperSection > Articles > Configuration of Virtual Directory in IIS 7

Configuration of Virtual Directory in IIS 7


IIS 7 IIS 7 
Ratings:
0 Comment(s)
 2877  View(s)
Rate this:

Configuration of Virtual Directory in IIS 7

In this article, I will look at how to configuration Virtual Directory.

We can configure the Virtual Directory in IIS 7 by following steps.
Below screen for my Virtual Directory ‘Welcome’.

Configuration of Virtual Directory in IIS 7

Authentication

Authentication means the site is accessible to all. This is the default authentication mode for any site that is hosted on IIS, and it runs under the "IUSR_ [Server Name]" account. We can change by editing.

Configuration of Virtual Directory in IIS 7

a.       Double click to open Authentication.

Configuration of Virtual Directory in IIS 7

b.      Right Click on Anonymous Authentication and select Edit option when click on the Edit option above ‘Edit Anonymous Authentication Credentials’ dialog box will appear.

c.       Click on Set… button to set the User Name and Password.

Configuration of Virtual Directory in IIS 7

 

Errors Pages

As the title sounds, here I’m going to discuss a very simple feature of IIS7. Let’s take an example of configuring a redirect for a page to HTTPS if it is browsed on HTTP. There are a lot of ways doing this HTTP to HTTPS redirection, where using Error pages is one of them. If you force HTTPS to be used in your website, error 403.4 would be returned to the browser. By default detailed error message (403.4) won’t be sent to the browser, but just 403. However, you can enable detailed error messages. Now, we need to configure our error page so that it redirects the requests to HTTPS. You can do it by following this KB article for IIS 7.0.

 

 

a.       The Errors Pages allows us to specify the error page that will be displayed for any specific type of HTTP Error Double Click on the Error Pages.

Configuration of Virtual Directory in IIS 7

b.      After Double Clicking on Error Pages option below screen will appear.

Configuration of Virtual Directory in IIS 7

 


Don't want to miss updates? Please click the below button!

Follow MindStick