简体   繁体   English

XAMPP上的虚拟主机重定向到/ dashboard

[英]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 我正在使用XAMPP 5.6.30和Windows 10

I did the steps to configure new virtual hosts.. 我做了配置新的虚拟主机的步骤。

  1. Uncommenting 取消注释

Include conf/extra/httpd-vhosts.conf 包括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 127.0.0.1 example.local-vhost 127.0.0.1供应商.local-vhost 127.0.0.1 manage.local-vhost

  2. And also adding this on my httpd-vhosts.conf 并将其添加到我的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 我也重新启动了Apache

But still no luck, it still redirect me to /dashboard 但是仍然没有运气,它仍然将我重定向到/ dashboard

Please help.... what did i do wrong there? 请帮助...。我在那里做错了什么?

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

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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