httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: mod_example and the API
Date Mon, 14 Apr 1997 01:40:58 GMT
Sure if you need to work in both places and do things differently that can
be used.  But I was just mentioning that it's possible that you don't even
need to know which context you're invoked in because you can only be
invoked in one context.

Dean

On Sun, 13 Apr 1997, Alexei Kosut wrote:

> On Sun, 13 Apr 1997, Dean Gaudet wrote:
> 
> > On Sun, 13 Apr 1997, Rodent of Unusual Size wrote:
> > > >It's possible for your directives to implicitly know in which context they
> > > >are supposed to operate.
> > > 
> > >     Oh?  How?
> > 
> > According to the flags they're defined with they may be valid only in
> > server-config or in per-dir config and not both... so it's implicit which
> > structure they're supposed to modify.  That's how most of the stock
> > modules with both per-dir and per-server configs work.
> 
> Hmm? But that's not always true. Take Redirect, which is valid in both
> server-config and per-dir config. It just consults cmd->path, which is
> defined for per-dir, but NULL for server. IMHO, that's the correct way
> to do this.
> 
> --
> ________________________________________________________________________
> Alexei Kosut <akosut@nueva.pvt.k12.ca.us>      The Apache HTTP Server
> URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/
> 
> 


Mime
View raw message