Did you know: Configure Web site content location in IIS 7 / 7.5

by vivek 1/4/2010 8:23:30 PM

In IIS 6.0, you have an option to host a Web site with Web content on the same computer, or a shared location on another computer or redirect the request to a URL. If you look at IIS 7 / 7.5 management console you would wonder where all the settings are and this post will guide you through the same.

I. Directory located on the same computer

In IIS 6.0

  1. Right click on Web Site (Default Web Site in our case) and click on Properties
  2. Click on Home Directory tab

    image5

In IIS 7 / 7.5

  1. Click on the Web Site (Default Web Site in our case)
  2. In Action panel under Edit Site, click Basic Settings…

    image6

 

II. Directory located on a remote computer (shared drive)

In IIS 6.0

  1. Right click on Web Site (Default Web Site in our case) and click on Properties
  2. Click on Home Directory tab

    image7
  3. Click on the Connect As… button to change the security credentials used to connect to the shared location

In IIS 7 / 7.5

  1. Click on the Web Site (Default Web Site in our case)
  2. In Action panel under Edit Site, click Basic Settings…
  3. You don’t see any option button to select to change your resource location. You will have to directly type in the UNC path like \\machine_name\shared_folder (\\vivekkum-a\custerr in our case).

    image8
  4. If you click on the Connect as… button and select Specific user –> Set…

    image9
  5. You should enter domain\username if you want to configure it for a Specific domain user, else IIS will try to resolve the username with a local account and will fail with the error “The specified user name does not exist.”

The configuration change will get reflected in applicationHost.config file under system.applicationHost\sites.

Hope this helps,
Vivek Kumbhar

Quote of the day:
Not only is the universe stranger than we imagine, it is stranger than we can imagine. - Sir Arthur Eddington



blog comments powered by Disqus

Search


Tags



Categories

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0