Set application hostname, optionally with a base URL, for purge and refresh requests.