Local Virtualmin Webserver?

I want to create a local Virtualmin-based LAMP server to act as a staging server for a couple Wordpress sites.

The reason I want a Virtualmin-based setup instead of just using LAMP/WAMP is the ease of migrating, since Virtualmin lets me migrate the entire server.

The problem I am having is http://localhost takes me to /var/www instead of virtualminserver.com/public_html

What’s the right way to do this?

I assume you have a Linux machine? Use pseudo domains when creating a virtual server and then modify your /etc/hosts file.

It’s actually Windows Linux Subsystem. I’m not sure that solution will work. I need the development site to have the url of mylivewebsite.com otherwords when if I ever migrate the dev site to the production server I am going to have all kinds of issues.