Question: how to setup vhost in xampp?
Answer: Open httpd.conf file present in C:\xampp\apache\conf\httpd.conf. Remove the #(hash) sign present to include the “httpd-vhosts. conf” file in httpd. ... 
Create a virtualhost file. Open “httpd-vhosts. conf” file. ... 
Step3: Open C:\Windows\System32\drivers\etc\hosts.