Skip to content

Create Your own domain in xampp ?

Last updated on July 7, 2017

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

    
    Order Allow,Deny
    Allow from all
    

    
    DocumentRoot d:arjun
    ServerName www.arjun.com
    
    
    DocumentRoot c:xampphtdocs
    ServerName localhost
    

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

0 0 votes
Article Rating
Subscribe
Notify of
guest

1 Comment
Most Voted
Newest Oldest
Inline Feedbacks
View all comments