Hi, Apache module uses hooks (function pointers) to invoke proper modules for each request, and there are several hook categories such as initialization, log, auth, and main handler. I recommend reading mod_example.c (in modules/experimental) and compiling it with your Apache. I'm sure that will answer most of your questions.
- Sung ________________________________________ From: Benedict DSilva [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 24, 2004 10:13 PM To: [EMAIL PROTECTED] Subject: Help required on Apache from scratch... Hi all, Just wanted to know about how does the Apache HTTP Server start, and all that it does with the modules (Initialization, Configuration etc). These are some of the points I wanted to get cleared about!! 1. When Apache starts up what is all that it does with the Modules i.e How does it form its linked list, and maintain the reference. 2. When ever a request is sent to Apache server, then how does it process it? 2.1 Does it map the request to each and every module handler in the List? 2.2 How are all the phases then handled? Is it that for every phase of the request(URI translation, auth, atho....etc) all the modules actually consulted whether they can handle it? Overall just wanted to know the working of the Apache Web Server from Scratch. Awaiting for a helping hand! Thanks in Advance, Warm Regards, --BENNY