`server_name` is matched for servers, have you tried? If yes and not matching, reopen and attach all debug/log messages printed by kamailio with debug=3 in kamailio.cfg.
I will look at the docs and update where it is the case, if you search for server_name, there are notes that it is matched, but some parts might be outdated in this aspect.