Any way for a module to set directives when it's loaded?

Ryan Burn rnickb731 at
Mon Jun 15 17:52:20 UTC 2020

Suppose I'm writing an nginx module foo. Is there any way to have foo
set default directives when it gets loaded?

For example, if I wanted foo to add headers to every request could I have

load_module modules/;

implicitly add

proxy_set_header foo-header bar-value;

to the http context?

More information about the nginx-devel mailing list