Results 1 to 5 of 5

Thread: site?? or virtual directory

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    site?? or virtual directory

    can someone explain the difference between a new site in IIS and a new virtual directory.. which should i use, when and why?

    Thanks

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    regular sites in IIS are directories that reside under the inetpub/wwwroot directory. Virtual sites can be pointed anywhere. also Virtual sites have setup options that the other does not like setting up some permissions stuff. you should use virtual d's
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Also a site, generally speaking, has to be tied to an IP address, and a virtual directory is more of a subfolder or subweb of an existing site.

  4. #4
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    A site is the default website on a standard IIS setup which is usually the wwwroot folder. Virtual directories are locations on your machine which you are indicating to IIS should be processed by IIS as a web application - which is what is needed for asp, asp.net and other server side scripted pages to be properly handled. On a standard machine like my home pc for example I only have one site. As has been said you need different IPs etc. to create more sites. You default site is a web application folder naturally.

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    They are nearly the same in terms of features and options. You can set any security on a site that you can on a vdir. And a Site does not have to reside in the wwwroot folder. You can specify any folder as long as you ensure that the IUSR_machinename user (or whatever user your anonymous accesses are impersonating) has permissions to it. Also, with sites, you can specify a host header that IIS can use to direct traffic on the same IP to different sites based on the url used to access the IP.

    VDirs are amply explained above by Musician..
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width