Skip to content

Instantly share code, notes, and snippets.

@cpwnd
Created May 24, 2021 18:01
Show Gist options
  • Save cpwnd/015c3f1568b34d6da6490e89a2616d45 to your computer and use it in GitHub Desktop.
Save cpwnd/015c3f1568b34d6da6490e89a2616d45 to your computer and use it in GitHub Desktop.
Don't forget the nginx proxy pass configuration
# nginx conf
location / {
proxy_pass https://example.com/matomo/; # or without the 'matomo' path, but when with path, don't forget the trailing '/'
proxy_set_header Host example.com;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Accel-Internal /internal-nginx-static-location;
access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment