"Under the weather."

How did this phrase become “feeling ill”? Sorry if it’s been answered before, but my search-fu is very poor today.

Not a definitive answer, but a best historical guess from wordorigins.org

I’m feeling “under the weather” right now. Rain often causes me to get a headache, as is the case right now. I think it’s my sinuses.