In C:\xampp\apache\conf\extra\httpd-vhosts.cnf
file add new VirtualHost block
DocumentRoot "C:\xampp\htdocs\app_folder"
ServerName example.com
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
Then restart apache
Open hosts file, in Windows it’s located in C:\Windows\System32\drivers\etc
(make sure to show all files) and append
127.0.0.1 example.com
Save and close hosts file
You should be able to browse http://example.com:8080/ which loads the content from your disk