Create Virtual Host In XAMPP Server.



...\xampp\apache\conf\extra\httpd-vhosts.conf

NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "E:\xampp\htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName devtry.com
DocumentRoot "E:\xampp\htdocs\dev2016\try"
<Directory "E:\xampp\htdocs\dev2016\try">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName  www.devtry.com
DocumentRoot "E:\xampp\htdocs\dev2016\try"
<Directory "E:\xampp\htdocs\dev2016\try">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>


------------------------------
C:\Windows\System32\drivers\etc\hosts

127.0.0.1       www.devtry.com
------------------------------
Note: xampp server restart.


Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment