A very easy step you need to follow if you would like to set up virtual domain if you are using xampp.
Make sure xampp is installed
This is my path Go to C:\worldgyan\apache\conf\extra(depends on where xampp is installed)
Search file name httpd-vhosts.conf
so now the path is Go to
In httpd-vhosts.conf copy following code
ServerAdmin [email protected] DocumentRoot "C:/worldgyan/htdocs" ServerName dev.worldgyan.com #ErrorLog "logs/dev.worldgyan.com-error.log" #CustomLog "logs/dev.worldgyan.com-access.log"
Replace above "dev.worldgyan.com" to your domain
At xampp level every thing fine
Now go to
Please see the below image for more details
Step 7 :-
hosts and edit at last
Make sure to replace "
dev.worldgyan.com" to your domain
Now restart apache and try to serve the domain through the browser
That's it now enjoy ;)
I hope you like this post