I had to make a change to the patch in order to get it working.... +if test -n "$USE_SYSLOG"; then instead of +if [[ "${USE_SYSLOG}" == "YES" ]]; then which got things working for me. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5579,23474#msg-23474