Looks like the links I posted are about using variables in fastcgi_pass directive for hostname or socket, not for upstream name. When I tried similar configuration, I got "no port in upstream" error in log. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,183712,187842#msg-187842