fixed nginx rewrite to https