rolling back to nginx 1.6.2 and improving https forwarding