Keeping head straight while meditating

I try to keep my head straight while meditating. But it becomes tired in a few minutes. And I cannot keep it straight anymore. If I do I feel a mild pain.
Any advice?