|
Re: 403's not getting logged?
On Fri, 9 May 2003, Jeff Trawick wrote:
> hurray for truss!
Good quick sluthing.
> > If a directory has insufficient perms (700), apache will report in
> the error_log that "stat() returned u\
> nexpected error[13]" for _each_ possible index file in
> srm.con:DirectoryIndex. Errno 13, according to /us\
> r/include/sys/errno.h, is EACCES "Permissio
> n denied". This tends to fill up the error_log unnecessarily, and more
> important error messages get lost \
> in the noise. I would imagine the code should check to see if the
> errno=EACCES, and just return FORBIDDEN\
> , without logging an error.
Having one error for each item in the DirectoryIndex (ie, one for
index.html, index.htm, and index.php) seems like a small penalty for
deobfiscating this error. I hope, however, that the OS returns a useful
error like (from the freebsd stat() manpage) "Search permission is denied
for a component of the path prefix."
Anyway, +1 on concept for reversing that change, but I don't have a 1.3
install to test.
Joshua.
|