Hey folks,
I’m running into a really odd situation that I can’t figure out. I have Uniform Server set up on Windows 11, and everything works perfectly when I use just one site. But the moment I add a second virtual host, all of my sites, including the first one that was working, start redirecting to the wrong document root.
For example, I added a new host pointing to C:/UniServerZ/www/project2, but somehow both localhost/project1 and localhost/project2 now load the same files from project2. Even stranger, if I restart the server a couple of times, it sometimes flips, and both hosts point back to project1 instead. The Apache config looks normal to me, and I double-checked that the hosts file entries are correct.
It feels almost like Uniform Server is “forgetting” which virtual host to serve after a restart. Has anyone else seen this kind of behavior? Could it be some hidden caching or a Windows service interfering? I’d love to get to the bottom of this before I break everything even more.
Pips NYT