search

Home  >  Q&A  >  body text

nginx - Larval Homestead cannot be accessed normally after installation

I installed Larval Homestead according to the documentation on the official website, but after the virtual machine is started, the site cannot be accessed normally, prompting No input file specified.

The following is the configuration content of Homestead.yaml

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: jack
name: jack
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: "/Users/Jack/laravel"
      to: "/home/vagrant/laravel"

sites:
    - map: homestead.app
      to: "/home/vagrant/laravel/public"
      hhvm: true

databases:
    - homestead

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

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

/Users/Jack/laravel This Laravel package was installed by me using composer. I tested it with php artisan -serve and there was no problem. It can be accessed normally.

PHPzPHPz2794 days ago658

reply all(4)I'll reply

  • 某草草

    某草草2017-05-16 16:54:19

    This should be a nginx setting problem, right? Is there any welcome to nginx?

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 16:54:19

    I have had this problem, and the solution is to put the domain name configured in the hosts file at the front. As to why, it's not entirely clear. You can try it~

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 16:54:19

    I also have this problem, has the poster solved it

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 16:54:19

    Why do you use Homestead? I set up the LNMP environment directly in VMware's Linux virtual machine, and then used Laravel, and there was no problem at all!

    reply
    0
  • Cancelreply