EDIT: I should have added if anyone has a link to a GOOD simple virtual hosts "How To" for Win 10 I would be very very greatful.
I have successfully got up and running with virtual hosts on about 4 machines in the past. I am damned if I can get it working here so reinstalling XAMPP for the second time.
I want to be able to use foo.dev and bar.dev and just have them as URLs mapping their roots to directories htdocs\foo.dev and htdocs\bar.dev.
I have done this before on about 5 occasions but this is the problem - I can never remember exactly how I did it (edit host in etc, httpd.conf in apache\conf and httpd-vhosts.conf in extra).
Before I started fiddling around localhost was working fine and then when I changed all these files back nothing is working.
PLEASE can we have a sticky for setting up virtual hosts. I have Googled until my eyes bleed and seen so many contradictory methods.
If there was one method here, then, if it did not work we would all start from the same point when looking for help.
TIA Steve
PS A little guidance on Winows Event Viewer would also be nice in the error message or in the current sticky. I cannot find any useful info in WEV. My log on this installation was :
12:44:12 PM [main] Initializing Control Panel
12:44:12 PM [main] Windows Version: Home 64-bit
12:44:12 PM [main] XAMPP Version: 5.6.19
12:44:12 PM [main] Control Panel Version: 3.2.2 [ Compiled: Nov 12th 2015 ]
12:44:12 PM [main] Running with Administrator rights - good!
12:44:12 PM [main] XAMPP Installation Directory: "c:\xampp\"
12:44:12 PM [main] Checking for prerequisites
12:44:12 PM [main] All prerequisites found
12:44:12 PM [main] Initializing Modules
12:44:12 PM [main] Starting Check-Timer
12:44:12 PM [main] Control Panel Ready
12:44:15 PM [Apache] Attempting to start Apache app...
12:44:15 PM [Apache] Status change detected: running
12:44:16 PM [Apache] Status change detected: stopped
12:44:16 PM [Apache] Error: Apache shutdown unexpectedly.
12:44:16 PM [Apache] This may be due to a blocked port, missing dependencies,
12:44:16 PM [Apache] improper privileges, a crash, or a shutdown by another method.
12:44:16 PM [Apache] Press the Logs button to view error logs and check
12:44:16 PM [Apache] the Windows Event Viewer for more clues
12:44:16 PM [Apache] If you need more help, copy and post this
12:44:16 PM [Apache] entire log window on the forums