You can't knock on the door. It's a taboo of geomantic omen. You should put the bed in the diagonal position of the door, and the head of the bed is against the solid wall without gap. The diagonal position is the best position to put the bed.
In fact, it doesn't matter if the gate rushes to the door, but there is a problem if it rushes to the window. This is called money leakage. The gate is a long corridor and then rushed to the door, which is called a big problem, which is called evil spirits.
Solution: Hang a pot of green vines on the left and right outside the door, which are available in all flower shops and named "green radish".