thank you all! i managed to find where i think i should make modifications. in srclib/apr/file_io/unix/open.c but just something strange, i found out that httpd.conf is opened twice when i start up apache. i would had thought its just opened once.
thanks - adrian On Thu, Oct 23, 2008 at 4:05 PM, Rainer Jung <[EMAIL PROTECTED]>wrote: > Sander Temme schrieb: > > > > On Oct 22, 2008, at 6:24 PM, adrian golding wrote: > > > >> hi, httpd -t opens up the httpd.conf file and runs a check on its > >> syntax. Other than that, where in the code is the place where the > >> httpd.conf file being opened is parsed and the options written in that > >> file is used to set certain configurations of the server? Other than > >> httpd -t, i want to add some calls *just* before the httpd.conf is > >> being used by the application. > > > > > > ap_read_config is called in server/main.c:662 and server/main.c:740. It > > is defined in server/config.c:1994. > > ... and if you want to implement a module which operates on the config > before it gets read, the hook you want to use is called "pre_config". > > Regards, > > Rainer >
