1
votes

Need help! :(

I am working on this for days, and still cant figure out the solution.

I am working with XAMPP 5.6.30 and Windows 10

I did the steps to configure new virtual hosts..

  1. Uncommenting

Include conf/extra/httpd-vhosts.conf

  1. Introducing my virtual hosts

    127.0.0.1 example.local-vhost 127.0.0.1 supplier.local-vhost 127.0.0.1 manage.local-vhost

  2. And also adding this on my httpd-vhosts.conf

<VirtualHost *:80>
  DocumentRoot C:/xampp/htdocs/example
  ServerName example.local-vhost
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot C:/xampp/htdocs/project-bo
  ServerName supplier.local-vhost
</VirtualHost>

<VirtualHost *:80>
  DocumentRoot C:/xampp/htdocs/project-bo
  ServerName manage.local-vhost
</VirtualHost>
  1. Also I have restarted my Apache

But still no luck, it still redirect me to /dashboard

Please help.... what did i do wrong there?

2

2 Answers

0
votes

You may just need to add or un-comment the NameVirtualHost *:80 before the v-hosts

0
votes

add / at the end of the Document Root like this

DocumentRoot C:/xampp/htdocs/project-bo/