473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

virtual directories/physical directories in IIS

Im confused about the difference(s) between virtual directories and
physical
directories in IIS.

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #1
4 2864
A physical directory, i.e., a directory in your hard drive, can be pointed to by
IIS to configure a virtual directory, i.e., a directory that anybody can access
from outside your computer via http.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Paul F" <pa********@gmail.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
Im confused about the difference(s) between virtual directories and
physical
directories in IIS.

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***

Jun 27 '08 #2
May be my question wasnt quite clear, In Microsoft Internet Manager,
which
is the UI for IIS you can have physical and virtual directories inside
the
default web site, i want to know the difference between the two
structures
there

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #3
re:
!you can have physical and virtual directories inside the default web site

You can not only have them inside the default website,
but you can also have them inside any web application.

I assume that you mean something like this :

--root directory
-- physical subdirectory of the root which is not configured as a virtual directory
-- physical subdirectory of the root which *is* configured as a virtual directory

Basically, the difference is that any web.config in a physical subdirectory cannot
contain references to MachineToApplication configuration sections, while in
virtual directories you can override MachineToApplication configuration sections.

To see which configuration sections are MachineToApplication ones, open the file machine.config.comments
with Notepad, or any other pure text editor, and search for the text "MachineToApplication".

Those configuration sections can only be configured when the application's web.config is in a
directory configured as a virtual directory, and cannot be configured in physical subdirectories.

Any section in machine.config marked as "MachineToWebRoot" can only be configured in the Application's root.
Any section in machine.config marked as "MachineOnly" can only be configured once for the whole server.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Paul F" <pa********@gmail.comwrote in message news:eB**************@TK2MSFTNGP03.phx.gbl...
May be my question wasnt quite clear, In Microsoft Internet Manager,
which is the UI for IIS you can have physical and virtual directories inside
the default web site, i want to know the difference between the two structures there

*** Sent via Developersdex http://www.developersdex.com ***

Jun 27 '08 #4
A physical directory is a directory that exists under the directory that the
web site is bound to. For example: inetpub\wwwroot (url would be
http://localhost) is the location the web site is pointing to.
inetpub\wwwroot\mydirectory is physically under that directory (url would be
http://localhost/mydirectory).

A virtual directory could be any directory that can be seen by the server.
let's say you had a bunch of files in a directory called d:\myfiles. You can
create a virtual directory called MyFiles in your web site (url would be
http://localhost/myfiles). To anyone browsing to that directory through the
web site, it behaves as if it's located within the web.

Easiest way to think of it is a shortcut folder for web servers.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

"Paul F" <pa********@gmail.comwrote in message
news:#4**************@TK2MSFTNGP06.phx.gbl...
Im confused about the difference(s) between virtual directories and
physical
directories in IIS.

Any ideas?

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michelle | last post by:
I have a website with 6 virtual directories under it who dont "see" the bin/ directory in the root. If I create a /bin directory in each virtual directory and then copy my dll's in there, it...
4
by: david | last post by:
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As...
1
by: Chris Newby | last post by:
I have created a standard VS 2003 setup project (not the Web Setup project) that installs an Asp.Net application. In addition to this, I would like the setup to also create a few other virtual...
14
by: Lorenzo | last post by:
Hello, I have a web application with a virtual directory in it. With 'virtual directory' i mean a folder whose physical path is different from the physical path of the application, but in which...
4
by: Chuck P | last post by:
Using vs05 and making an asp.net 2.0 website. We use VSS and have everything organized like this SolutionName Documents Code WebProjectName1 WebServiceProjectName1
2
by: Lucky | last post by:
Hi guys, Again asking Question regarding Virtual Directories. now i've got the Virtual Directories list with the help of Michael. the code is used to get the virtual directory is ...
0
by: djmc | last post by:
Hi, I am having problems with virtual directories and web.config inheritance. I have read the section titled "Conflicts between settings on virtual and physical directories" at...
4
by: =?Utf-8?B?SmVmZiBCZWVt?= | last post by:
Best way I can think to describe this is through an example. I have a virtual directory, let's call it "MyVirtualDirectory" that maps to \\MyServer\Shared. I have a path that is...
6
by: ManagedCoder | last post by:
Hi, My requirement is as follows: I need to set the HttpExpires (enable content expiration - set to 7 days) on a folder within a virtual directory. I have been able to set the HttpExpires...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.