[nginx] fix a bunch of nginx output issues