You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Brian McQueen <mc...@gmail.com> on 2006/12/13 20:25:32 UTC

diagram of server phases

I was surprised to discover that the translate_name handler goes
before the header_parser handler.  This made it clear to me that I'm
really not sure about what all of the standard hooks are or in what
order they are called.  I know the old camel book has a pretty
diagram, but its way out-of-date.

Maybe there is a way to get this by scanning through the headers or
through the source code?  How would I determine the order?

Does anyone know if this information is available?

Nick, will it be in your book?

Brian McQueen

Re: diagram of server phases

Posted by "Dr. Peter Poeml" <po...@suse.de>.
On Wed, Dec 13, 2006 at 11:25:32AM -0800, Brian McQueen wrote:
> I was surprised to discover that the translate_name handler goes
> before the header_parser handler.  This made it clear to me that I'm
> really not sure about what all of the standard hooks are or in what
> order they are called.  I know the old camel book has a pretty
> diagram, but its way out-of-date.
> 
> Maybe there is a way to get this by scanning through the headers or
> through the source code?  How would I determine the order?
> 
> Does anyone know if this information is available?
> 
> Nick, will it be in your book?
> 
> Brian McQueen

I think this might help you:

http://f-m-c.org/projects/apache/html/3_3Extending_Apache.html

Regards,
Peter
-- 
SUSE LINUX Products GmbH               Bug, bogey, bugbear, bugaboo:
Research & Development               A malevolent monster (not true?);
                                          Some mischief microbic;
                                         What makes someone phobic;
                                     The work one does not want to do.
  From: Chris Young (The Omnificent English Dictionary In Limerick Form)

Re: diagram of server phases

Posted by Sander Temme <sc...@apache.org>.
On Dec 19, 2006, at 5:17 AM, Nick Kew wrote:

>> Maybe there is a way to get this by scanning through the headers or
>> through the source code?  How would I determine the order?
>
> There is a page somewhere in the developer docs @apache.org
> that gives the order of hooks.  There's also an element of
> legacy from Apache 1's less flexible architecture.

Do you mean:

http://httpd.apache.org/docs/trunk/developer/request.html

?

For a comprehensive list of all available hooks, check out  
mod_example.c from trunk. It now has a handler for every hook in the  
server, whether it makes sense or not. If you build it with - 
DEXAMPLE_LOG_EACH=1 , every hook handler will write to the error log  
and you get a, very verbose, run-down of the calling order.

S.

-- 
sctemme@apache.org            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Re: diagram of server phases

Posted by Nick Kew <ni...@webthing.com>.
On Wed, 13 Dec 2006 11:25:32 -0800
"Brian McQueen" <mc...@gmail.com> wrote:

> I was surprised to discover that the translate_name handler goes
> before the header_parser handler.  This made it clear to me that I'm
> really not sure about what all of the standard hooks are or in what
> order they are called.  I know the old camel book has a pretty
> diagram, but its way out-of-date.

The header-parser is a general-purpose hook.  It comes after
translate_name and map_to_storage so that it'll run when
per-directory config (including applicable .htaccess) is
in effect.

If you want to scan headers earlier, ignore the name and use
a post_read_request hook.

> Maybe there is a way to get this by scanning through the headers or
> through the source code?  How would I determine the order?

There is a page somewhere in the developer docs @apache.org
that gives the order of hooks.  There's also an element of
legacy from Apache 1's less flexible architecture.

> Does anyone know if this information is available?
> 
> Nick, will it be in your book?

Chapter 6 deals with the request processing cycle and
metadata handling, and includes the order of standard
hooks with (brief) explanations and examples.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/