Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1092
  • Last Modified:

Can IIS point to a different directory other than the \Inetpub\wwwroot\?

Does the web application directory always have to sit in the \Inetpub\wwwroot\?  Or can that application directory be stored elsewhere on another drive? If so, how is this done?
0
michael1174
Asked:
michael1174
  • 2
1 Solution
 
hubtechCommented:
It does not have to be in the \Inetpub\wwwroot\ folder.

To change it, right-click the web site and select 'properties'.  Select the 'Home Directory' tab and change the path in the 'Local path:' field to whatever you want.

... hubtech
0
 
michael1174Author Commented:
I have a "Directory" tab, its the first tab. And, it does say "Local Path" on that tab, but its disabled (greyed out).
0
 
hubtechCommented:
Then you'll need to move the directory and create a Virtual Directory.

Use Windows Explorer to physically move the directory.  Then in IIS Manager, right-click the web site and select New -> Virtual Directory.   The Virtual Directory Creation Wizard will walk you through setting up the directory.  Use the name of the original directory as the 'alias'.  You will also need to re-establish any directory security or other special settings you had on the directory previously.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now