Rewrite uri for specific file

Hi all,

I’d like to redirect favicon requests of backend which haven’t to external link we I’ve hosted this file

In a backend, I tried following set-uri directive, but it does not works.

http-request set-uri https://domain.com/favicon.ico if { path -m str /favicon.ico }

Could someone please help ?
regards
thomas