fixes http redirect with nginx; closes #112