Setting up Virtual Hosts in XAMPP

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the "hosts" file :


127.0.0.1       localhost

127.0.0.1       nownow.com

127.0.0.1       xpendy.in

::1             localhost



Step 2) xampp\apache\conf\extra\httpd-vhosts.conf


<VirtualHost *:80>

    ServerAdmin admin@nownow.com

    DocumentRoot "C:/xamppnew/htdocs"

    ServerName nownow.com

    ErrorLog "logs/nownow.com.log"

    CustomLog "logs/nownow.com-access.log" common

</VirtualHost>


<VirtualHost *:80>

    ServerAdmin admin@xpendy.in

    DocumentRoot "C:/xamppnew/htdocs/xpendy"

    ServerName xpendy.in

    ErrorLog "logs/xpendy.in.log"

    CustomLog "logs/xpendy.in-access.log" common

</VirtualHost>



Step 3) Restart XAMPP and now run :

Comments

Popular posts from this blog

Add Css And Js Files on Specific Page In laravel

Xpendy Pending

Laravel Join with two coloums