Accessible from the public under the IP address you mean? You can do that by making the "domain2" the default for the server; that function is under Server Configuration -> Website Options.
It's not possible though to make it accessible from the public under its domain name before the IP address has propagated through the DNS.
VIrtualmin has a "Preview Website" function under "Services", you can use that e.g.
yes but i want to be accessable from the public :(
Accessible from the public under the IP address you mean? You can do that by making the "domain2" the default for the server; that function is under Server Configuration -> Website Options.
It's not possible though to make it accessible from the public under its domain name before the IP address has propagated through the DNS.