How to create virtual host with windows7 and xampp

  1. Go to your xampp folder
  2. go to apache > conf > extra >httpd-vhosts.conf
  3. Add following line on that file. My is as follows<VirtualHost *:80>
    DocumentRoot “E:/installationsevenpointtwo/htdocs”
    ServerName localhost
    </VirtualHost>

    <VirtualHost *:80>
    DocumentRoot “E:/installationsevenpointtwo/htdocs/lsapp/public”
    ServerName lsapp.test
    </VirtualHost>

Then

  1. Go to C:\Windows\System32\drivers\etc
  2. Edit host file in it as :::::
  3. 127.0.0.1 localhost
    127.0.0.1 lsapp.test

Finally restart the Apache

Share on Facebook0Tweet about this on Twitter0Share on Google+0Pin on Pinterest0Share on LinkedIn0Share on Reddit0
It's only fair to share...

Add Comment

Required fields are marked *. Your email address will not be published.