Hi there,
On Fri, 22 Sep 2000, Martin Wood wrote:
> We have a collection of CGIs in a single directory handled by
> Apache::Registry, however if we enter the name of a resource under
> that location that doesn't exist, say
> www.noddy.com/registry_dir/dont_exist.cgi this is not recorded in
> the error_log, just the access log, yet the correct 404 "File not
> found" response is displayed to the client.
> For locations managed by default handlers, attempts to access
> non-existent files is logged in both the access and error logs. Is
> is possible to activate this behaviour for the Apache::Registry
> handled location?
Have a look around lines 44-56 of Apache/Registry.pm - I'm sure you'll
see what you need there. That is if you've got mod_perl 1.24. Dunno if
the line numbers are the same elsewhere. it goes like this...
if (-r $filename && -s _) {
if (-d _) {
return DECLINED;
}
if (!($r->allow_options & OPT_EXECCGI)) {
$r->log_reason("Options ExecCGI is off in this directory",
$filename);
return FORBIDDEN;
}
unless (-x _ or $Is_Win32) {
$r->log_reason("file permissions deny server execution",
$filename);
return FORBIDDEN;
}
73,
Ged.