Re: Get name of config file for module
On Thu, May 23, 2013 at 10:39 AM, Sean Beck seanmckayb...@gmail.com wrote: OK thank you! I ask because my boss wants me to log the config file info on start-up of the server but I have been completely unable to find a way to do so, hence why I came to the mailing lists for help. Thanks for the help You can get info about where any of your own directives are specified. The VirtualHost directive remembers where it was found: s-defn_name = cmd-directive-filename; s-defn_line_number = cmd-directive-line_num;
Re: Get name of config file for module
s is the server_rec? So what you're saying is s-defn_name refers to the .conf the module got its configuration information from? It's labeled in the httpd.h header as The name of the server but does that actually mean the config file? On Thu, May 23, 2013 at 8:59 AM, Eric Covener cove...@gmail.com wrote: On Thu, May 23, 2013 at 10:39 AM, Sean Beck seanmckayb...@gmail.com wrote: OK thank you! I ask because my boss wants me to log the config file info on start-up of the server but I have been completely unable to find a way to do so, hence why I came to the mailing lists for help. Thanks for the help You can get info about where any of your own directives are specified. The VirtualHost directive remembers where it was found: s-defn_name = cmd-directive-filename; s-defn_line_number = cmd-directive-line_num;
Re: Get name of config file for module
What does cmd refer to/can I find it in the request_rec? On Thu, May 23, 2013 at 10:21 AM, Eric Covener cove...@gmail.com wrote: On Thu, May 23, 2013 at 11:44 AM, Sean Beck seanmckayb...@gmail.com wrote: s is the server_rec? So what you're saying is s-defn_name refers to the .conf the module got its configuration information from? It's labeled in the httpd.h header as The name of the server but does that actually mean the config file? Emphasis on the other side of the assignment, which you have access to as you handle each directive.