|
| IIS, Virtual Directories and Website Files |
 |
Tue, 1 Apr 2008 09:41:44 +0000 |
I have created a website which I am now deploying to a windows vps on iis 6 with
plesk interface. I have created a virtual directory in plesk (under the httpdocs
root directory) with option to also create a physical directory of the same
name. I have moved certain .aspx/.aspx.vb files into the directory mainly
because they will become grouped which will make its easier to disallow in
robots.txt.
I thought that by placing the files into this directory the files would think
they are still at the root of the website, however now I get errors when trying
to load the page because the pages cannot find the masterpage or .css - the
webpage is looking for them at virtualdirectory/ rather than root/ Have I
created the virtual directory incorrectly by also specifying to create a
physical directory? and if so how can I place files into a virtual directory
that does not have a physical directory, using FTP for example. Or is my
understanding of virtual directories not quite right...
Cheers
MArco
|
| Post Reply
|
| Re: IIS, Virtual Directories and Website Files |
 |
Tue, 1 Apr 2008 13:13:24 +0000 |
marco gwiliani:I thought that by placing the files into this directory the files
would think they are still at the root of the website,
You thought wrong. It's a directory below the root, whether real or virtual. A
virtual directory is simply a directory entry that points somewhere else to the
real file loactions. It behaves as a directory in it's hierarchy, as if a
physical directory existed at the location of the virtual one.
In most web hosts, there's no real need for virtual directories, a physical one
works fine.
Jeff
|
| Post Reply
|
|
|
|
|
|
|
|
|
|