According to some cultures and superstitions sleeping with your bed and feet facing the door is supposed to bring you bad luck.
And to prevent that bad luck you should sleep with your feet facing away from the door and facing your bed to the west and away from the door is supposed to give you a good nights sleep and bring you good luck.