Welcome! Log In Create A New Profile

Advanced

Custom

Mohit Joshi
September 14, 2021 01:06PM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Custom

Mohit Joshi September 14, 2021 01:06PM

Re: Custom

Francis Daly September 15, 2021 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready