php - Laravel/Homestead 403 forbidden -


i getting 403 forbidden | nginx/1.11.1 error. have set correctly keep getting error. i've dabbled in other similar issues here on stackoverflow , other sites none have giving me results. first time using homestead laravel.

ip listed in /etc/hosts file homestead.app

ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox  authorize: ~/.ssh/id_rsa.pub  keys:     - ~/.ssh/id_rsa  folders:     - map: /home/prokaryote/code       to: /home/vagrant/code  sites:     - map: homestead.app       to: /home/vagrant/code/laravel/public 

*********edit*****************

here permissions laravel directory in terminal.

machine@user:~/code/laravel/public/blog$ namei -l ~/code/laravel/public/blog f: /home/prokaryote/code/laravel/public/blog drwxr-xr-x root       root       / drwxr-xr-x root       root       home drwxrwx--- prokaryote prokaryote prokaryote drwxrwxr-x prokaryote prokaryote code drwxrwxr-x prokaryote prokaryote laravel drwxrwxr-x prokaryote prokaryote public drwxrwxr-x prokaryote prokaryote blog 

here permissions within virtualbox machine laravel directory.

vagrant@homestead:~$ namei -l ~code/laravel/public/blog f: /home/vagrant/code/laravel/public/blog drwxr-xr-x root       root       / drwxr-xr-x root       root       home drwxr-xr-x root       root       vagrant drwxrwxr-x vagrant    vagrant    code drwxrwxr-x vagrant    vagrant    laravel drwxrwxr-x vagrant    vagrant    public drwxrwxr-x vagrant    vagrant    blog 

your folder might wrong.

open terminal window in project directory , enter

pwd 

this prints working directory, change working directory in yaml file.

hope helps. new laravel.


Comments