You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1998/04/18 09:32:33 UTC
Re: error when handler not found? (fwd)
One of Marc's ideas that should probably be applied.
Dean
---------- Forwarded message ----------
Date: Thu, 12 Mar 1998 18:51:59 -0700 (MST)
From: Marc Slemko <ma...@worldgate.com>
To: Apache - BYOC <ne...@apache.org>
Subject: Re: error when handler not found?
Reply-To: new-httpd@apache.org
On Thu, 12 Mar 1998, Dean Gaudet wrote:
> You mean log in default_handler when r->handler != NULL? That makes
> sense.
Yes, that is the basic idea. I always thought it dumb when Apache didn't
whine when I tried to use mod_status without it compiled but it just gave
me a 404. This gets even more important on Win32 with LoadModule.
However I'm still trying to figure out if there are any screwed up
situations in our screwed up types handling that could result in a handler
being set for something that gets sent via default_handler anyway.
Index: http_core.c
===================================================================
RCS file: /export/home/cvs//apache-1.3/src/main/http_core.c,v
retrieving revision 1.165
diff -u -r1.165 http_core.c
--- http_core.c 1998/03/02 06:51:07 1.165
+++ http_core.c 1998/03/13 01:48:58
@@ -2009,6 +2009,12 @@
caddr_t mm;
#endif
+ if (r->handler) {
+ aplog_error(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING,
+ r->server, "handler \"%s\" not found, using default "
+ "handler for: %s", r->handler, r->filename);
+ }
+
/* This handler has no use for a request body (yet), but we still
* need to read and discard it if the client sent one.
*/
>
> Dean
>
> On Thu, 12 Mar 1998, Marc Slemko wrote:
>
> > Would it make sense to log an error when a handler for something that has
> > a specific handler associated with it isn't found?
> >
> >
> >
>
Re: error when handler not found? (fwd)
Posted by Martin Kraemer <Ma...@mch.sni.de>.
On Sat, Apr 18, 1998 at 01:32:33AM -0700, Dean Gaudet wrote:
> One of Marc's ideas that should probably be applied.
Right! I was missing that one already.
+1
Martin
--
| S I E M E N S | <Ma...@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
Re: error when handler not found? (fwd)
Posted by Ben Laurie <be...@algroup.co.uk>.
Dean Gaudet wrote:
>
> One of Marc's ideas that should probably be applied.
+1.
Cheers,
Ben.
--
Ben Laurie |Phone: +44 (181) 735 0686| Apache Group member
Freelance Consultant |Fax: +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |
A.L. Digital Ltd, |Apache-SSL author http://www.apache-ssl.org/
London, England. |"Apache: TDG" http://www.ora.com/catalog/apache