setting for localhost and webhost