I have been pulling my hair out all day on this, so I hope someone has an answer!
I have a PC running Windows 7 with XAMPP. I have set up a virtual host within Apache with the relevant entries in the host file. I have also set up the correct entries within the host files of client PCs that are supposed to access the server via web browser (using the virtual host names) over a local network.
I have done this before with no issues. What I am trying to do now is replicate the setup across a different set of machines running on a completely independent closed network that is not connected to the Internet or anything else.
It works, EXCEPT that there is a TREMENDOUS delay when attempting to connect to the server from the client PCs. It takes about 10 seconds to load a web page. This happens whether I try to connect to the virtual host or the server's IP address directly.
When connecting to the virtual hosts or localhost from the server itself, there is no delay. There is only a delay when accessing the Apache server from client PCs.
A ping from the client to server returns a latency of 2ms, so I don't think there is any inherent network communication issues.
What I have tried:
1) Using WAMP instead of XAMPP. 2) Using a different router. 3) Using various client machines to test. 4) Disabled IPv6. 5) Played with tons of permutations of the host file on the server and clients. I am pretty sure it is set up correctly though because it mirrors an existing configuration I am using without issue.
For some reason, accessing the server over HTTP causes a huge delay, EVEN when typing in the IP address directly into the browser.
I really need to get this working very soon - any ideas???