Put domain names first in site_hosts array

When accessing $_SERVER['SERVER_NAME'] through PHP on Nginx, the first
host in the Nginx conf is used. This makes SERVER_NAME return the
domain name instead of the IP.