Fixed nGinx port issues with redirects (thanks Shish!)