Close to the wind

phrasal as nearly as possible against the main force of the wind

Merriam-Webster's Collegiate Dictionary