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

RoboRobok's avatar

Default folder loaded by Homestead

If we go to http://192.168.10.10, what makes Homestead decide which project to launch? It's pretty dumb to load anything instead of throwing an error, same goes with any domain mapped to 192.168.10.10, but missing in Homestead.yaml.

In my case, it loads one of the projects, but I have no idea what determines which one. The one it loads for me is not the newest, not the oldest, not first and not last in my ~/Homestead/Homestead.yaml.

Is it random or what?

0 likes
1 reply
RoboRobok's avatar
RoboRobok
OP
Best Answer
Level 7

After some further testing I found out it just takes the first domain alphabetically. What I did after finding this out is editing ~/Homestead/Homestead.yaml to map aaa.test domain to the project I want to be the default in :

sites:
    - map: aaa.test
      to: /home/vagrant/code/cool-project/public

Now, going to http://192.168.10.10 or any *.test (since I have dnsmasq configured to route all *.test domains to 192.168.10.10) opens the project from /cool-project folder.

Please or to participate in this conversation.