nginx: fix for detecting ip address with chef 11