Search

Content

How to run multiple websites in xampp windows pc12/20/2016
1. Go to C:\xampp\apache\conf\extra\  directory

 2. Add the below code and website name

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "C:\xampp\htdocs\my-website"
    ServerName local.my-website.com
    ErrorLog "logs/dummy-host2.example.com-error.log"
    CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

3. Now restart the apache server from xampp user interface.

4. After that open any browser and type "local.my-website.com" (without quotes).