[nginx] fix a bunch of nginx output issues
Merge pull request #1 from Olivine-Labs/nginx-fixes

[nginx] fix a bunch of nginx output issues