Results 1 to 3 of 3

Thread: What is the difference between a VDir and a WebDir??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2001
    Location
    UK
    Posts
    92

    Angry What is the difference between a VDir and a WebDir??

    Hi all,

    I am fairly new to the whole web creation game.

    I have been handed a VB project which has the ability to create a webdir, and also a Virtual directory.

    Could someone explain what the difference is, and why you would create a Web directory? I can't seem to find the option within the MMC to create a Web directory manually. Is it only possible via code?

    Any comments would be appreciated!!

    Thankyou,

    Paul.
    Paul

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    well webdir is a directory thta resides in the inetpub/wwwroot directory. A virtual directory points to a directory that can reside on any drive/directory.

    As far as any difference, I cant be 100% sure but I think Vdir you have more control over it from MMC/IIS. If it is just simple html page/asp pages, a webdir would be fine, but it is probably always best to use a virtual directory for full web applications.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    well webdir is a directory that resides in the inetpub/wwwroot directory. A virtual directory points to a directory that can reside on any drive/directory.
    You don't need the inetpub/wwwroot directory at all if you set your web root to be in another place. I move all mine off the C: drive, which also makes your IIS server somewhat more secure (Path exploit scripts won't work).

    But what a Virtual Directory does is let you put a folder outside of the web root folder, or even a network share.

    So if your web root is the default C:\Inetpub\wwwroot\ nad you put a page.php file in it,
    then www.yourname.com/page.php would be in that directory.

    However, if you make D:\MyStuff\Junk into a Virtual Directory named (aliased or whatever) Test, and put a file page.aspx into it, then it can be accessed "virtually" by www.yourname.com/Test/page.aspx evwen though there's not a Test folder in the wwwroot folder.

    Virtual Directory are run as seperate web applications, but you can run a folder in the web root as one anyway if you want.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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