Skip to content

Instantly share code, notes, and snippets.

@cpwnd
Created May 24, 2021 18:01
Show Gist options
  • Select an option

  • Save cpwnd/015c3f1568b34d6da6490e89a2616d45 to your computer and use it in GitHub Desktop.

Select an option

Save cpwnd/015c3f1568b34d6da6490e89a2616d45 to your computer and use it in GitHub Desktop.

Revisions

  1. cpwnd created this gist May 24, 2021.
    9 changes: 9 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 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;
    }