include_shell

Brane F. Gračnar brane.gracnar at najdi.si
Tue Aug 23 14:57:15 UTC 2011


On Tuesday 23 of August 2011 16:32:29 Alistair Prestidge wrote:
> include_shell
> /var/www/site.com/site-nginx.conf<http://site.com/site-nginx.conf>

nginx.conf:

include "/path/to/special_generated.conf"

Then you can generate mentioned file using a script followed by nginx reload. 
If you don't want to include it, just purge it using:

echo > "/path/to/special_generated.conf"

You can also use glob pattern, for example:
include "/path/to/special/*.conf"

Regards, Brane



More information about the nginx mailing list