Add Website  Vs  Add Virtual Directory in IIS ?

Posted on 2011-10-09
Medium Priority
Last Modified: 2012-05-12

 Can someone explain the difference between "Adding a website"  Versus "Adding Virtual directory" in IIS 7 ?

If we wanted to host a ASP.net website which is recommended ?
Question by:OCUBE
  • 3
  • 3
LVL 21

Accepted Solution

Dale Burrell earned 1000 total points
ID: 36939872
A website has its own domain e.g. www.mydomain.com a virtual directory is a directory within a website which is run as its own application e.g. www.mydomain.com/blog.

I expect your circumstances will dictate which you use.

Author Comment

ID: 36939932

  Its a web application which we wanted users to login and use it over the web.

 We have a public Static IP address and we host the application in a folder either as an Application
  or as an Virtual directory and have users login.


  This ABC is a folder where our application files are location.

   C:\ABC  ( on windows directory)
LVL 21

Expert Comment

by:Dale Burrell
ID: 36939958
Yip, and is it a directory of an existing site? Or is it THE site? If its the site its a website, if its a directory within a site its a virtual directory.

Where its stored is less relevant...
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.


Author Comment

ID: 36939990

   It is THE SITE
LVL 21

Expert Comment

by:Dale Burrell
ID: 36940021
So question answered :) well done

Assisted Solution

worthyking1 earned 1000 total points
ID: 36942257
Yes, your site will be configured in IIS as a website. If you needed to have a directory in the website that was located outside the physical root of the websites folder (in your example C:\ABC) then you would create a virtual directory within that site. let's say you had a shared scripts foldr located at C:\DEF\Scripts then your could create a virtual directory in your site called scripts and it would be accesible at www.YourSite.com/scripts -- so it would act like it was located at C:\ABC\scripts even though it in fact would be physically located at C:\DEF\scripts.

Here is a great article that explains all of this in great detail.  


Author Closing Comment

ID: 36950162

Featured Post

New feature and membership benefit!

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question