Welcome! Log In Create A New Profile

Advanced

shebang configs

Posted by 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: 46
Record Number of Users: 5 on May 17, 2013
Record Number of Guests: 138 on May 16, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready