In this sample project, I outline the best practices for hosting providers, whether for a single domain or multiple domains. This is what professional hosting services do, although many resellers don't bother with it because it's already automated to allow multiple servers to use the same resources or third-party resources to avoid increasing costs and reuse infrastructure.
That's why I'm providing the basics of how it works.