I'm not 100% sure on this, but I think the general rule of thumb for distance from port is 1 1/2 times the port length. For example, if you have a 6" long port, you would want to keep things at least 9" away from the port. This is needed to allow the bass waves to develop.
You can put some...