When you want to run your website locally there are a few solutions but you might want to do things without additional tools and with minimal configuration.
This is how you create a simple virtual host with a custom local domain for serving a site locally.