Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

darragh3277's avatar

Configuring homestead.yaml for windows 10

I'm trying to get laravel and homestead setup on my machine and I'm running into a few problems.

I have done the following so far:

  1. Added box to vagrant vagrant box add laravel/homestead
  2. Cloned homestead into C:\www git clone https://github.com/laravel/homestead.git Homestead
  3. Initialised homestead vagrant init laravel/homestead
  4. Edited my homestead.yaml file to the below
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: "C:\www\laravel_projects"
      to: /home/vagrant/Code

sites:
    - map: test.app
      to: /home/vagrant/Code/Laravel/public

databases:
    - homestead
  1. Added test.app 192.168.10.10 to my hosts file
  2. Ran vagrant up
  3. Test test.app, 192.168.10.10 and 127.0.0.1 in browser.
  4. I can ssh in with vagrant ssh but can't get anything in my browser.

These are the folders I have setup in what I'm hoping to be my dev folder.

C:\www\Homestead C:\www\laravel_projects C:\www\laravel_projects\test

0 likes
2 replies
sherwinmdev's avatar

@darragh3277 here's a suggestion

If you change the sites property after provisioning the Homestead box, you should re-run vagrant reload --provision to update the Nginx configuration on the virtual machine.

what do you mean by "can't get anything in my browser". is there an error? is it a blank page? if it's a blank page, it could be related to folder permissions but usually homestead is pretty good with that.

1 like
darragh3277's avatar

@w1n78

Thanks for the reply. I had just been getting a server not found page (should have said that in the original post).

However I did get it working. I did two things so I'm not sure which fixed it for me:

  1. I removed my Homestead directory from C:\www and placed it in C:\Users\username. I don't think this was the reason it wasn't working, but wanted to follow a tutorial.

  2. I changed the paths for my folders and sites in my homestead.yaml file. I think this was the main cause:

folders:
    - map: "C:\www\laravel_projects"
      to: /home/vagrant/laravel_projects

sites:
    - map: test.app
      to: /home/vagrant/laravel_projects/test

Note: Once I installed laravel into my test directory I changed sites to:

sites:
    - map: test.app
      to: /home/vagrant/laravel_projects/test/public

And ran:

vagrant halt
vagrant up -provision

Hope that helps others having trouble.

Please or to participate in this conversation.