Nginx does not see the domain that was requested when domain is proxied through cloudflare

The server is an nginx server.
Here is an example log without using cloudflare (ip has been changed):
127.0.0.1 - - [08/Jul/2021:01:28:58 +0200] "GET /favicon.ico HTTP/1.1" 404 196 "http://my.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
Here is an example log with cloudflare:
127.0.0.1 - - [08/Jul/2021:12:05:33 +0200] "GET /favicon.ico HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
As you can see when I have cloudflare enabled, I cannot see the domain that is being requested. How could I resolve this issue? It is critical to my site’s functions as some domains serve content in different root directories.

bump, I still need help with this.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.