Welcome! Log In Create A New Profile

Advanced

shebang configs

Posted by zdm 
zdm
shebang configs
March 30, 2012 07:53PM
It would be nice to have shebang configs in nginx.
If config file have shebang string, then nginx run this config through corresponding interpeter and read real config from stdout.

For example:

/usr/local/sbin/nginx -c nginx.conf

nginx.conf content:

#!/usr/bin/perl
print "
worker_processes 1;
pcre_jit on;
events {
worker_connections 1024;
}
etc...
";
1;

This should be work with config files, used by include directive also.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready