[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Directory Listing
>Yeah,
>I think these more generic handler could be improved or merged, anyway
>I think what you want could be achieved more easily with the following
>line in the checkpath phase.
>
> CheckPath RefuseFileByMask AllowFileMask="f" RefuseStatus=404
>
>I.e. if the resource is not a file, do a '404 Not found'
That line is in there. I did the debug thing and this is what I got:
[228:176] |<-- 0.020000 0 CHECKPATH CONTINUE ISAPI "GET /
HTTP/1.0" 0
[228:176] |--> 0.020000 -------- CHECKPATH UNKNOWN Default "GET /
HTTP/1.0" 0
[228:176] |--> 0.020000 -------- CHECKPATH UNKNOWN
DirectoryExists "GET / HTTP/1.0" 0
[228:176] |<-- 0.020000 0 CHECKPATH COMPLETED
DirectoryExists "GET / HTTP/1.0" 0
[228:176] |<-- 0.020000 0 CHECKPATH COMPLETED Default "GET /
HTTP/1.0" 0
Directory Exists somehow believes that the file exists or something.
This is how I have it in the Default handler.
CheckPath DirectoryExists IndexFile="index.ssi" IndexFile="index.html"
IndexFile="index.htm" IndexFile="default.ssi" IndexFile="default.htm"
IndexFile="default.html"
CheckPath RefuseFileByMask AllowFileMask="F" RefuseStatus=404
CheckPath RefuseFileByMask AllowFileMask="EF" RefuseStatus=404
Weird thing is that, Check For Directory realizes that it is a directory.
[228:176] |--> 0.030000 -------- CHECKTYPE UNKNOWN
ConditionalGet "GET / HTTP/1.0" 0
[228:176] |<-- 0.030000 0 CHECKTYPE CONTINUE
ConditionalGet "GET / HTTP/1.0" 0
[228:176] |--> 0.030000 -------- CHECKTYPE UNKNOWN
CheckForDirectory "GET / HTTP/1.0" 0
[228:176] |<-- 0.030000 0 CHECKTYPE COMPLETED
CheckForDirectory "GET / HTTP/1.0" 0
[228:176] |<-- 0.030000 0 CHECKTYPE COMPLETED Default "GET /
HTTP/1.0" 0
[228:176] |--> 0.030000 -------- HANDLE UNKNOWN SiteMapper "GET
/ HTTP/1.0" 0