简体   繁体   中英

Laravel Homestead 403 Error

I am getting an error on Laravel Homstead which stated the 403 forbidden error, I cannot seem to see what is wrong in the .yaml file. I am using OSX if that helps. Below is my .yaml file for assistance.

    ---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: /Users/jordanbarber/vagrant/laravel/projects/mysite/html/vAMSYS
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/base/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 93000
#       to: 9300
#     - send: 7777
#       to: 777
#       protocol: udp

Continue from " so, what would that directory be? " If you're using windows, go to you root folder and type "cmd" in the path at the top, after that run

vagrant reload

Your folder might be wrong.

Open a terminal window in your project directory and enter

pwd

This prints the working directory, change the working directory in your yaml file.

Hope it helps.

You need to also edit your /etc/hosts file to include:

192.168.10.10  homestead.app

Then run

vagrant reload --provision

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM