简体   繁体   中英

Virtual Hosts on XAMPP redirecting to /dashboard

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?

您可能只需要在v主机之前添加或取消注释NameVirtualHost *:80

像这样在文档根目录的末尾添加/

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM