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
Here's the full solution steps:
run homestead edit
add /public
to the end of your directory
sites:
- map: homestead.app
to: /full/path/to/the/laravel-app/public
homestead halt && homestead up --provision
For some people this may be as simple as having git cloned in an existing public folder, e.g:
- map: hello-world.dev
to: /home/vagrant/Code/Laravel/public/hello-world
The correct folder structure is:
- map: hello-world.dev
to: /home/vagrant/Code/hello-world/public
Another good note is ignoring the laravel docs on editing hosts file, using git shell, or cygwin (windows) to install vagrant hostsupdater, and simply adding entries for hosts and aliases to ~/.homestead/Homestead.yaml file.
Configuring Nginx Sites :
sites: - map: homestead.test to: /home/vagrant/project1/public
To fix, ssh into your homestead, then do :
nano /etc/nginx/sites-available/the-name-of-your-project.test
After that all you need to do is get rid of $uri/
that you will find in the location
object , then do vagrant reload
and error should be fixed.