http://ip/ will always land on the default (first) vhost unless you have another vhost with ServerName IP set. Just set up an arbitrary hostname to resolve to 192.168.1.7, then use http://dummyhostname/. Make sure to define a vhost with that ServerName set as well.
I would encourage you to look at the name-based vhosts docs, too. On Tue, Aug 1, 2023 at 9:08 PM John Iliffe <john.ili...@iliffe.ca> wrote: > I'm trying to test a new server located at internal IP 192.168.1.5. The > production server lives at IP 192.168.1.7 on the same network. > > How can I force the browser to connect to the correct server? If I try > "http://192.168.1.5" the redirect on the first (alphabetically) virtual > server redirects to the production server. > > What I need to be able to do is combine the virtual server id with the > network address so I connect to the same name but on the machine I'm > testing. I think this is the "ServerName" header but I don't know where > I can enter this on Firefox. > > Anybody have any experience with this problem? > > Thanks in advance. > > John > ====== > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >