remove trailing '/' from setting.host_name