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

nelisbraems's avatar

Homestead.yaml multiple sites redirects to one site

Hi

I have set up two websites but both redirect to phpmyadmin. I've read a lot of articles on this issue and nothing seems to help.

My YAML file does not contain any tabs, only spaces and looks like this:

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

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: "C:/Users/Nelis/web"
      to: "/home/vagrant/code"

sites:
    - map: ss-comm3
      to: /home/vagrant/code/ss-comm3
      type: silverstripe
    - map: phpmyadmin
      to: /home/vagrant/code/phpmyadmin
databases:
    - homestead

I have added the following lines to my hosts file

192.168.10.10   phpmyadmin
192.168.10.10   ss3-comm

I have executed vagrant reload --provision numerous times, but it doesn't solve anything.

When I execute vagrant global-status I see only one line:

id       name        provider   state   directory
----------------------------------------------------------------------------
ed26152  homestead-7 virtualbox running C:/Users/Nelis/web/Homestead

Does anyone have a clue on what might be causing my both of my websites redirecting to phpmyadmin/?

0 likes
1 reply
nelisbraems's avatar

It was pretty silly, there was a typo in the name of the folder. This can be deleted.

Please or to participate in this conversation.