Welcome! Log In Create A New Profile


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:

print "
worker_processes 1;
pcre_jit on;
events {
worker_connections 1024;

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: 354
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready