Custom

Mohit Joshi m_joshi at hotmail.com
Tue Sep 14 17:04:43 UTC 2021


Dear experts
   Need a help on a custom configuration block directive. I have created a dynamic module for logging (some specific features). Looking for a custom configuration block for my module, since this needs to be applied to all servers so wanted to block inside http as in MY_MODULE_CONFIGURATION below. What is the way to do this? any samples will help (right now on doing this I get unsupported directive error

http {

MY_MODULE_CONFIGURATION {
name "logging module";
log_collector "localhost"
log_port 9607
log_frequency 10
}

....
access_log /var/log/nginx/access.log ;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
....
}
}

Thanx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20210914/5c083d4c/attachment.htm>


More information about the nginx mailing list