Here is the method for creating virtual host in xampp

  1. go to this file :  xampp->apache->conf->extra->httpd-vhosts.conf
  2. edit this file using notepad or notepad++
  3. at the end of the file paste the following code :-
<VirtualHost *:80>
ServerAdmin webmaster@shiv
DocumentRoot "E:/server/shiv/"
ServerName shiv
ServerAlias shiv
ErrorLog "logs/shiv.log"
CustomLog "logs/shiv.log" common
<Directory "E:/server/shiv/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted

Keep Server name what ever you want.
also edit hosts file from this folder


Edit Hosts file    shiv