I have a web site that's using php on apache to dynamically display folder
contents... That is, I've created a script that is displayed if there isn't
a default document in the folder itself. My default documents in Apache are
in this order:
index.htm
index.html
index.php
/_Script/_index.php
The last one is a problem in IIS...
So, for example, if I browse a folder that contains images and has no
index/default page, the _index.php script I've created displays the list of
images as well as thumbnails that it dynamically creates. Directory browsing
is disabled because I have my own implementation of it in the _index.php
script that has many more features than the built-in directory listing.
If you'd like to see what I'm talking about, take a look at
http://www.jmiassociates.com/Public/Images/Stock/
The folder contains only web-size .jpg images, and sub-folders that contain
thumbnails and the original full-size images.
The problem is this: I'm upgrading our file server to Windows Server 2003,
and I'd like to migrate the site to IIS to make administration of
users/groups easier. I've configured IIS with php which works just fine,
but the problem I have is that the IIS doesn't seem to allow paths from
being entered in the default document list. I also tried moving the script
to the root of the site, but the leading forward slash is ignored.
Does anyone know of a way to set a path to a default document? Is there
another way to replace the built-in directory listing without re-inventing
the wheel?
- Aaron Lance