Before Apache is Nginx reverse proxy


#1

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?


(Fabian Dellwing) #2

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


#3

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


(Fabian Dellwing) #4

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


#5

Thank You for the info