xampp 虚拟主机设置问题

  • httpd-vhosts.conf 配置:

    <VirtualHost *:80>
        DocumentRoot "/opt/lampp/htdocs/"
        ServerName localhost
    </VirtualHost>
    
    <VirtualHost *:80>
        DocumentRoot "/opt/lampp/htdocs/laravel51_docs/public"
        ServerName l5.localhost
    </VirtualHost>
  • host 也设置了, 访问 l5.localhost 跳转到 http://l5.localhost/dashboard/.

  • 环境 xubuntu 16.04xampp-linux-x64-5.6.28-1-installer.run

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进