[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'
John
>
> In the Default (Flexible Handler), I replace the line
> Handle Condition="&cmp($c,internal/x-directory)" TableHTML
> with:
> Handle Condition="&cmp($c,internal/x-directory)" StatusCode StatusCode="404"
>
> Since I want it to generate a not found error. So this is how I have it
> setup right now:
>
> # Handle Condition="&cmp($c,internal/x-directory)" TableHTML
> Handle Condition="&cmp($c,internal/x-directory)" StatusCode StatusCode="404"
> Handle Condition="&cmp($c,internal/x-directory)" ReturnCode
> ReturnCode=REDIRECT
>
> I need to generate a REDIRECT code, but StatusCode already generates a
> COMPLETED CODE, so the rest is not executed. What do I do?
>
>
>
>