Before Apache is Nginx reverse proxy

Hello,
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?

https://matomo.org/faq/how-to-install/faq_98/

1 Like

Thank You!
I also found some setings for Nginx:
https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/
and Apache:
https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html

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