This handles setting the site according to the config.