Skip to content

korneil/ngx_include_shell_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Include the output of program as nginx config.

Install:

./configure ... --add-module=[path_to_module_dir]

Usage:

Put include_shell directive to nginx.conf:

include_shell [path_to_file_where_the_output_will_be_generated] [program_to_execute];

[program_to_execute]'s cwd will be the directory of the config file where include_shell is set.

Example:

include_shell /tmp/tmp-nginx.conf "/bin/echo root /var/www;";

include_shell /tmp/tmp-nginx-gen.conf "/bin/php script_to_generate_conf.php";

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages