Like so? With the box sitting against the gasket? And there will no gasket inside the box between the box and the nut?
You didn't leave it like the one on the right, correct?
The gasket always goes on the flange side, never on the nut side. The reason being is the gasket seals between the flange and glass making a water tight seal. If it is on the nut side, water leaks out between the threads since there is nothing creating the seal there.
Hope this helps!