Login :: Register
General Topics
HostedbyMaximumASP170x35
2005 IIS MVPs
Other IIS Sites
  When I create a virtual directory the users cant see it, how can they see this directory? 

I am not sure of the real reason for the behaviour of the FTP service when you create FTP virtual directories and them not showing up.

It is quite easy to fix the problem as I will show below.

Say for example you want to create a virtual directory called TEST that has files on another partition on your hard disk.

Step #1 - Create the virtual directory called TEST

When we browse the FTP site we do not see the TEST virtual directory as a directory to browse to.

We can at this stage (since we know it's name) type in the virtual directory name as part of the address.

In this case it is ftp://ccrowe/test

Step #2 - Create a physical directory with the same name as the virtual directory you created in step #1.

The way to make the TEST virtual directory appear without having to know it exists is that you create a physical directory in the folder where the virtual directory should appear.

In this case the FTP site root folder is c:\inetpub\ftpsites\FTPSITE

So I create a new folder called TEST in c:\inetpub\ftpsites\FTPSITE

Once the physical directory is created IIS knows that there is a directory called TEST and will show it in the directory listing.

When the user opens the TEST folder the IIS FTP service gets the contents from the virtual directory and not the physical directory as shown below.

Note: You must leave the empty physical directory for this to continue to work.

- End -

 This site and its contents are Copyright 1999-2004 by IISFAQ Microsoft Corporation in no way endorses or is affiliated with IISFAQ