Before Apache is Nginx reverse proxy

I have a situation where websites runs on Apache and before the Apache is Nginx reverse Proxy.
Will Matamo works correctly in such situations or do I have to set something especial?

1 Like

Thank You!
I also found some setings for Nginx:
and Apache:

If I will set just the Matomo config according the manual, will I also need set additionally the Nginx and Apache?
Thank You

If you use apache2 or nginx proxy in “default” mode, reading the HTTP_X_FORWARDED_FOR will be sufficient.

Thank You for the info