Virtual Directory

Author
Discussion

darrent

Original Poster:

630 posts

266 months

Wednesday 10th September 2003
quotequote all
I'm trying to set up a sub directory on my personal website e.g www.mysite/newdirectory/ so I can access a certain file no matter where I am/what PC I'm using.

I have managed to create the new directory and put the files I want in there via FTP but when I then go into my browser and go to www.mysite/newdirectory/ I get;

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

Why is this? Is it something to do with the attributes of the directory??

Don

28,377 posts

291 months

Wednesday 10th September 2003
quotequote all
OK. Each Virtual Directory has a thing called a Default Document. Depending on your web-server (or even the configuration of your web-server) this could be one of a number of files.

Possibilities are:

index.html
index.htm
default.htm
default.asp

and so on.

The "Directort Listing Denied" message is appearing becausse if there is no Default Document then the web-server is supposed to dish up a list of the files in the virtual directory...and if it doesn't have permission to do so you get an error message.

Hope that's useful.

plotloss

67,280 posts

277 months

Wednesday 10th September 2003
quotequote all
Yep, assuming you are using IIS its in the properties sheet of the folder. You need to check the 'Directory Browsing' box...

Liszt

4,330 posts

277 months

Wednesday 10th September 2003
quotequote all
The directory is not set up to allow directory listing. Click on the properties and there should be an option

darrent

Original Poster:

630 posts

266 months

Wednesday 10th September 2003
quotequote all
OK I've created the index.htm file now (I found it) but it still does not work. I tried to right click on properties (which works) and it brings up lots of attributes;

Owner; Group; Everyone - each has options for read write execute. I change them and apply and OK but when I go back they are back to normal!!! ARRGGG!

PS Edited to say I use AceFTP

>> Edited by darrent on Wednesday 10th September 16:05

Don

28,377 posts

291 months

Wednesday 10th September 2003
quotequote all
You don't want to set the properties of the index.htm file. You need to change the properties of the Virtual Directory.

Don't know what o/s you are running but if its Windows 2000 you should be able to navigate to the control panel, startup Internet Information Services. You should get a list of your Virtual Directories. You can then right click on whichever it is and set the properties to either allow directory browsing or to use a default document.