Debug reverse Proxy

I have matomo runnign behind a reverse proxy. The apache access log appears correct btu I do not have any visitors in the logs. Here is an example of the access.log.
Can somebody confirm if the url correct and how to debug?

Is this caused by 127.0.0.1 ip address ?

127.0.0.1 - - [08/Aug/2022:12:54:49 +0000] "POST /matomo.php?action_name=Amazon%20AWS&idsite=5&rec=1&r=389626&h=13&m=55&s=6&url=https%3A%2F%2Fwww.mydomain.com%2Fintegration%2Famazon-aws&urlref=https%3A%2F%2Fwww.youdocms.com%2Fsupport%2Fcloud-settings%2Fsearch%2Fjson-ld&_id=5898b1583d9964d4&_idn=0&_refts=1659963297&_ref=https%3A%2F%2Fregistration.mydomain.com%2F&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1200&pv_id=EAMurr&pf_net=0&pf_srv=13&pf_tfr=3&pf_dm1=724 HTTP/1.0" 204 269 "https://www.mydomain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"

Thanks
Paul

I have amended the nginx proxy to forward the real IP but still no visitors in the log.

81.xxx.xxx.231 - - [08/Aug/2022:13:52:08 +0000] "POST /matomo.php?action_name=Home&idsite=5&rec=1&r=403044&h=14&m=52&s=25&url=https%3A%2F%2Fwww.yyy.com%2Findex.html&urlref=https%3A%2F%2Fwww.yyy.com%2Ffeatures%2Fsite-search&_id=5898b1583d9964d4&_idn=0&_refts=1659963297&_ref=https%3A%2F%2Fregistration.yyy.com%2F&send_image=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1200&pv_id=iDK5uL&pf_net=85&pf_srv=11&pf_tfr=1&pf_dm1=651 HTTP/1.0" 204 269 "https://www.yyy.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0"

Hi @toomanylogins ,
with “log” do you mean the visitor log in the Matomo backend?

The URL looks fine.

  • I assume that a Matomo website with SiteID 5 exists?
  • And it was defined that the website domain https%3A%2F%2Fwww.yyy.com%2Findex.htm may track in the SiteID 5?
  • And I assume that for your test the IP was not excluded in the Matomo backend?

Best regards
Udo

Hello Udo,
Thanks for reply. Yes by log I mean the visitor log. If this different from the apache log ? and where is it ? I have nothing in tmp/logs.
Yes site 5 exists and was working before I placed behind proxy. The IP is not excluded and the site exists.

Hello Paul,

the visitor log is not a log file. I mean the visitor log as a live view in the Matomo backend like here https://demo.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=day&date=yesterday#?idSite=1&period=day&date=yesterday&category=General_Visitors&subcategory=Live_VisitorLog

Thanks, I realised that but when its empty I was expecting an error log somewhere. Ive scrapped the idea of js tracking blocked to often to be useful. Moving to log import.
Regards

When the visitor log in Matomo is complete empty and your website has different visitors then are fundamental things not correct. JS Blocker are not as common in this massive way.

And you have surely checked that configuration? You can rule out that this is the cause `?

Do you have configured a Matomo log file? Any entries there?