Fixes for deploy with different settings configs.
Debug information for 404.