httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Serving dynamic pages with C
Date Fri, 04 Nov 2005 01:14:22 GMT
On 11/3/05, Rob Belics <> wrote:
> I would like my Apache server to dynamically create and serve some web
> pages using 'C'.  I am not interested in using the default CGI or Perl.
> I have gotten myself turned round and round for weeks on how to do
> this.  I know I need to use the API but I don't understand where
> handlers and modules fit in.
> An example of where I am confused.  If a request for index.html comes
> in, would I have AddHandler myhandler .html in httpd.conf and write code
> for 'myhandler' to do this?  Wouldn't 'myhandler' actually be a module?
> Or are modules just a collection of handlers like a library?
> I think I might have enough information to know how to write a module if
> I just knew how Apache knew when and where to call my 'whatever' but I
> just need some direction.

Modules are simply bits of code added to apache.  They can contain
handlers, filters, access checkers, or other bits that plug into
request processing.  Writing a module that impliments a handler is not
terribly complicated, but it does require a decent understanding of
the API.  And the documentation is probably a little thin.

I'd start by finding the existing module that most closely resembles
what you want to do, and then work from there.  Documentation is at
(focus on the external resources, which are more up to date).
There is also a mailing list dedicated to this topic at


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message