David
Thu May 10 03:29:04 CDT 2007
What you describe is non-default behavior, so you need to identify
what is non-default about your installation.
Can you check the IIS Web logs for your 404 request and report the
exact log entry.
Are you running URLScan or other such server-behavior-modifying ISAPI
Filters.
It sounds you have URLScan installed and .asp extension is not
allowed, so URLScan would reject requests like
http://localhost/test/index.asp
with a plain 404.
http://localhost/test/ works because there is no .asp extension in the
URL for URLScan to reject, and at DefaultDoc resolution time /
index.asp is appended but URLScan has already been triggered, so no
404 rejection.
Directory browsing works because instead of DefaultDoc resolution,
DirBrowsing takes effect and generates the directory listing response.
When you click on the link, it is the same as typing "
http://localhost/
test/index.asp", which means you will get the 404 again.
The blog entry is for IIS6 not IIS5.1 on XP, but the ideas are close
enough to be relevant:
http://blogs.msdn.com/david.wang/archive/2005/10/14/HOWTO_IIS_6_Request_Processing_Basics_Part_1.aspx
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On May 10, 12:15 am, jpric...@gmail.com wrote:
> I have a virtual directory called "test" on my local machine.
> My web site has default document of (amongst the usual) "index.asp"
>
> Assume the file has the line "<% Response.Write("Hello World") %>" in
> it...
>
> I can access the file by going to "
http://localhost/test/" in my
> browser,
> however when I try and access "
http://localhost/test/index.asp" i get
> a 404 error - just a plain old every day run of the mill 404!
>
> If I turn directory browsing on and go to "
http://localhost/test/", is
> shows one file in the directory : "index.asp"
>
> When I click on that link, I get 404 error again!!!
>
> HELP!!!
>
> My settings are as per the default XP installation except for adding
> "index.asp" to the default document list.
>
> Any help would be very much appreciate.
>
> Regards,
> james.