Web Servers General Talk - Getting from a configuration directive to a request handler...

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > May 2004 > Getting from a configuration directive to a request handler...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Getting from a configuration directive to a request handler...
Russell Potter

2004-05-12, 6:36 pm


I'm running Apache 1.3 on a Windows 2000 SP2 machine, and I
have a module I'm writing in which I want to make sure a certain
request handler handles requests to locations on the server that my
module's configuration directive (within the handler routine for the
directive) has "enabled" the processing required
to carry out my module's functionality. (and, to also avoid confusion
here, I mean to "set the handler " by setting the "handler" field
of the request's "request_rec" structure to the name of the desired
handler ).

The crux of my problem is that I need a "request_rec" structure in
order to set the request's handler, but within my configuration
directive handler (the place I was intending to set the request
handler) I only have a "cmd" structure, with no mechanism (of
which I'm aware) to get from a "cmd" struct to a "request_rec"
structure ...

So does anyone know if there any fields of the relevant structures,
or perhaps an Apache API call (or even some other technique
someone could tell me), to direct the processing of a request
(by setting the request handler) from the context of a configuration
directive (in the form of the "cmd" structure passed to the directive
handler)?

Thanks,
Russell



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com