OS: CentOS 6.9. HTTPD version 2.2I have two IP addresses and a dozen of virtual hosts on one of them. What I need is to be able to switch what vhost is displayed by default when a visitor opens just the IP address in browser.Currently the only way I know I can achieve that is by replacing the virtuals and the first one works as default. I am looking for a better solution. Is there one? I need some kind of directive, so  I can switch the default virtual host with a script instead of manually editing httpd.conf.I spent whole morning googling. Found the following info:Set ServerAlias my.2nd.ip.addr - did not work for me.Set VirtualHost _default_:80 instead of VirtualHost my.2nd.ip.addr:80 - not the desired effect.Set ServerName my.2nd.ip.addr and add the domain as ServerAlias - still nothing.Any help would be appreciated.
Apache 2.2 default virtual host for IP address
centos;apache httpd;apache virtualhost