A simple 'hack', compiles and works, untested if port is coming from correct pool. http://pastebin.com/ZarS2nQd Raw code http://pastebin.com/raw.php?i=ZarS2nQd Posted at Nginx Forum: https://forum.nginx.org/read.php?2,262876,262924#msg-262924