www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c h <geek6...@usa.net>
Subject config/5214: Feature request - better error messages
Date Thu, 28 Oct 1999 18:48:53 GMT

>Number:         5214
>Category:       config
>Synopsis:       Feature request - better error messages
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Oct 28 11:50:01 PDT 1999
>Originator:     geek6666@usa.net
>Release:        1.3.9
> [Thu Oct 28 10:11:34 1999] access to /home/firewall/HTML/admin/ 
>  failed for, reason: Directory index forbidden by rule

The problem: I can't easily find the rule that caused this.
Create an .htaccess file that denies access to a file.
Hide it in the directory tree leading up to the file.
Try and find it.
New error message: 
 "...reason: Directory index forbidden by rule /home/firewall/.htaccess line 7"

While reading config files, .htaccess files and whatnot, record the filename
and line number.  When a rule is violated, log which rule.

For extra credit, create a command line debug flag that logs the rules used
for each request, or the first 10 requests, or the first request that matches
a regex.

For extra-extra credit, allow debugging of a cgi program with strace, running
strace only once for the given cgi.

[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message