<p dir="ltr">Have puppet generate the configuration based on that variable. <br></p>
<p dir="ltr">--<br>
Snet form my moblie phoen. Please excues tpyos.</p>
<div class="gmail_quote">On Feb 28, 2013 1:05 AM, "amodpandey" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Let me put what I want to achieve.<br>
<br>
Before that I want to know what is this 'env' global directive for?<br>
<br>
I want to maintain a single set of configuration files for dev and prod. The<br>
machines would have environment variable set ENV=dev or ENV=prod. Based on<br>
the values of the ENV varibale I wanted to pick my upstream conf, either<br>
upstream_dev.conf or upstream_prod.conf through 'include<br>
upstream_$ENV.conf'.<br>
<br>
Please suggest an approach.<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,236654,236704#msg-236704" target="_blank">http://forum.nginx.org/read.php?2,236654,236704#msg-236704</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>