Protecting wp sites from hackers by isolating them from each other?

Hello, do you know of some way to structure domain paths on server so that each domain is in some way isolated from the other and if it becomes hacked it does not open access to another domain on the same server? What is the best practice for this?

I'm moving all my domains from a shared hosting plan to a dedicated server and wish to ensure that each domain is in some way isolated from others to protect them should one be come hacked.

Thank you!
Joe