Home>

I want to develop in a virtual environment with Homestead, but when I go to the corresponding URL, I get a 502 error.
I don't know how to verify errors and I'm in trouble.

Error message

502 error at the corresponding URL

Applicable source code
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
   -~/.ssh/id_rsa
folders:
   -map: C: \ app \ workspace \ products
     to:/home/vagrant/products
sites:
   -map: homestead.test
     to:/home/vagrant/products/product1/public
databases:
   -homestead
Tried

vagrant reloadhas been executed.

Supplemental information (FW/tool version etc.)

Windows10

  • Answer # 1

    It seems to be resolved as a result,

      

    vagrant reload executed.

    If anything, this is wrong.

    https://readouble.com/laravel/5.6/en/homestead.html

      

    If you change the sites property after provisioning a Homestead box, you must rerun vagrant reload --provision to update the virtual machine's Nginx settings.

    Be sure to check the-provisionoption whenvagrant reload.

  • Answer # 2

    vagrant reload --provision