Using GoAccess with Nginx to replace Google Analytics

post, Jan 25, 2021 on Mitja Felicijan's blog

Introduction

I know! You cannot simply replace Google Analytics with parsing access logs and @@ -87,21 +87,18 @@ additional rules for SSL.

Your location portion the config file should now loo

Test if config is still ok with nginx -t and if it is you can restart Nginx with service nginx restart.

If you now visit https://stats.domain.com you should be prompted for username and password. If not, try reopening your browser.

That is all. You now have analytics for your server that gets refreshed every 10 -minutes.