On Wed, Sep 20, 2017 at 11:55 AM, eeadev dev <eea...@gmail.com> wrote:
> I have to write a set of variable to be read from my C module. Those
> variable could be change when the code is in production, similar to what u
> would write in a java properties file.
>
> What is the proper way to do it and which functions to use?
>
> write the in the httpd.conf (what is the API for getting/setting a var
> visible in all the apache web server)

You could:
  Define VAR_NAME "some_value"
in "httpd.conf" and then:
  const char *var_value = ap_resolve_env(some_pool, "VAR_NAME");
in your module for example.

No need for your module to add its own directive(s) for that, but it could too.


Regards,
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to