faqts : Computers : Internet : Web Servers : IIS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 5 people (100%) answered Yes
Recently 5 of 5 people (100%) answered Yes

Entry

Internet: Web Server: Microsoft Information Server: IIS: What is a virtual directory?

May 22nd, 2004 09:36
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 16 January 2004 - 04:15 am --------------------

Internet: Web Server: Microsoft Information Server: IIS: What is a 
virtual directory?

---

A virtual directory is an alias for a real directory (e.g. on your 
computer).

---

This directory can be accessed via your browser as if this directory 
is located inside the default

 c:\inetpub\wwwroot

---

This directory can be located anywhere on the network
(e.g. in c:\inetpub\wwwroot, but also elsewhere, like
 c:\temp)

---

So your applications can be anywhere on the network, in different 
directories,
and you can give this physical directories another (for example more
meaningful) alias name when creating this virtual directory mapping.

---

After you have created that virtual directory, you can just type
in your browser:

 http://localhost/<my virtual directory alias>

or more in general

 http://<mymachinename>/<my virtual directory alias>

to access the files in that directory.

e.g. your alias was 'mywebpages',
then you can type

 http://localhost/mywebpages

to access pages in that directory.

---

So it could e.g. be useful for testing already existing web pages
located in another directory.

---
---

Internet: see also:

---

Internet: Web Server: Microsoft Information Server: IIS: How to create 
a virtual directory?
http://www.faqts.com/knowledge_base/view.phtml/aid/28348/fid/173

----------------------------------------------------------------------