Nailing two box beams

In Config 2, only the force acting on the top 2x4 will tend to shear the nails.

The horizontal forces acting on the vertical 2x8's are not transmitted through the nails.