Here is the method for creating virtual host in xampp
- go to this file : xampp->apache->conf->extra->httpd-vhosts.conf
- edit this file using notepad or notepad++
- 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 </Directory> </VirtualHost>
Keep Server name what ever you want.
also edit hosts file from this folder
Edit Hosts file