Automatically change server_name variable to hostname.