This post is about Creating virtual hosts locally, i am gonna write step by step procedure to create your own domain names with xampp server.
Here is the steps for create the virtual Host
Note:-Before Making Changes in configuration files. server need to stop after editing complete than start the server.
1 .create a directory with any name.(for example: c:/arjun)
2. Open the file :
xampp > apache > config > extra > http-vhost.conf
3. Uncommit for the name virtualHost * :80 in 19th line , like ##NamevirtualHost*:80 here we need to remove ## .
4. Add the following Code
Allow from all
5. Open the file host c > windows > system32 > drivers > etc > hosts
We have to add a server name in the hosts file for example: 127.0.0.1 www.arjun.com
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.