My sites no longer resolve to /home/user I think I've been hacked.

Ok, so I don’t know when this happened, but today I can’t access any of my virtual domains.

They all resolve to /var/www/html now instead of /home/user/public_html

There is an index.html that shows test root

Have I been hacked?
How can I fix?

Howdy,

No, that’s not likely a sign of any sort of breakin… it’s probably just a configuration issue that popped up.

There’s some information on how to troubleshoot it here in the section named “The Wrong Site Shows Up”:

http://www.virtualmin.com/documentation/web/troubleshooting