Laravel Homestead: 403 forbidden on nginx

后端 未结 16 2424
醉话见心
醉话见心 2020-12-30 19:17

I just installed Laravel Homestead according to their instructions. When I open http://homestead.app:8000 I get the nginx 403 forbidden HTTP Response.

I have tried s

16条回答
  •  感动是毒
    2020-12-30 19:30

    I ran into this when I tried manually creating my first site. @GregD's answer helped me discover the problem! Vagrant/Homestead/Laravel will typically get everything running smoothly on its own if you use the built-in features.

    Homestead's configuration file comes preconfigured for one site, located in /Code/Laravel/. Some steps to get this test bed up and running:

    1. Install Homestead (remember to set your hosts file)
    2. vagrant up and connect to your virtual machine via ssh (Chrome Secure Shell is great if you don't have a terminal on your machine already)
    3. Download and set up the PHAR package
    4. cd ~/Code
    5. laravel new Laravel.
    6. Browse to http://homestead.app:8000

    This will create your first site with appropriate permissions. You can model future sites after the permissions on this one, or just use the "sites" node of Homestead.yaml and laravel new to make new sites in the future.

提交回复
热议问题