Thank you for your reply.
I was able to identify a record in database. The “options” table contains an “upload_url_path” record that defines the domain or the url of the media.
The plugin works for new media with absolute URL.
The options table configuration works for old media with relative path.
I have to change (using better search/replace plugin) old absolute url.
Thanks