Here’s a quick way to setup your “Localhost” on Windows 10.
First, search for “control panel” in the Windows search panel. Click on “Control Panel” as shown below.
Next click on “Programs” from the Control Panel, as shown below.
Next, click on “Turn Windows features on or off” as shown below.
This will bring up a new window called “Windows Features.” This will have a bunch of check boxes as shown below. Expand “Internet Information Services” and you will see 3 sub-categories. Turn on “Web Management Tools” and “World Wide Web Services.” Press “OK” at the bottom and wait for Windows to make your changes.
You’re done! And you’re welcome.