1. Traditionally, when a casket is brought into a home; for the last time, the legs faces the "door" (often the main entrance door).
2. When sleeping, the Chinese avoid sleeping with the legs directly facing the bedroom door: