我在尝试在 Laravel Homestead Vagrant 盒子上安装 Symfony2 时遇到问题..

输入 URL 时,我反复收到 403 响应。

我的 Homestead.yaml 中有这个,并将 test.dev 添加到我的主机文件中。

    folders:
        - map: ~/code
          to: /home/vagrant/code

    sites:
        - map: test.dev
        to: /home/vagrant/code/symfony-test
        # Also tried /home/vagrant/code/symfony-test/web

有任何想法吗?

最佳答案

您的变体: # Also tried /home/vagrant/code/symfony-test/web是对的。只需在浏览器中指向 http://test.dev/app.php 因为默认情况下 homestead 寻找 index.php 或将您的 app_dev.php 重命名为 index.php!
如果您需要在 app_dev.php 第 12-18 行中进行开发模式注释

关于php - Homestead + Symfony 2.7 安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31175184/

10-11 20:11
查看更多