Quantcast
Channel: how to create virtual host on XAMPP - Stack Overflow
Viewing all articles
Browse latest Browse all 17

Answer by Ashish pathak for how to create virtual host on XAMPP

$
0
0

Add this Code in C:\xampp\apache\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>DocumentRoot "C:/xampp/htdocs"ServerName qa-staging.comServerAlias www.qa-staging.com<Directory "c:/xampp/htdocs">Order allow,denyAllow from all</Directory></VirtualHost>

Now Add your virtual host name in bellow file.

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

127.0.0.1 qa-staging.com

If you are not able to save this code in host file then right click on notpad select Run as administrator and then you can able to save your custom code now restart your XAMP


Viewing all articles
Browse latest Browse all 17

Trending Articles