2ed version is here: http://stackoverflow.com/questions/7439515/how-to-reference-os-environment-variables-in-nginx-conf Posted at Nginx Forum: http://forum.nginx.org/read.php?2,215269,215278#msg-215278