2 messages in ru.sysoev.nginxfeature request- command line define ...
FromSent OnAttachments
Igor SysoevOct 25, 2006 9:31 am 
Jonathan VanascoOct 25, 2006 9:39 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:feature request- command line define flags ( like apache -D )Actions...
From:Jonathan Vanasco (ngin@public.gmane.org)
Date:Oct 25, 2006 9:39:14 am
List:ru.sysoev.nginx

Apache lets one do this:

apachectl start -D VariableName

and in the config

<ifDefine VariableName> Do Stuff if we specified the variable </ifDefine> <ifDefine !VariableName> or Don't Do Stuff if we didn't specify it </ifDefine>

nginx doesn't seem to have that facility (at least in the docs it doesnt). I was hoping it could be added if its not in there already

why is it useful? i use it on apache to switch from uptime -> downtime when there's only 1-2 lines different in the config files. big timesaver. also, when you're hosting mutiple sites, you might want to include a different file depending on a flag being set or not