Laravel Homestead: 403 forbidden on nginx

后端 未结 16 2422
醉话见心
醉话见心 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:40

    I have been banging my head against the wall dealing with this very same problem, and I just solved it for my case.

    I was sure I'd set up the yaml file correctly, but I kept getting the 403 error, and when experimenting with some routes I was getting "input file not specified".

    My solution came from http://laravel.com/docs/4.2/homestead and it involved using the serve command. I wasn't adding any additional sites, just trying to anything to get the first site running.

    SSH'ing into my vagrant box and using the command "serve my_app_name.app /home/vagrant/Code/path/to/public" did the job. Note that I had already put an entry into my hosts file for this app.

    Hope this helps someone.

提交回复
热议问题