Created
May 24, 2021 18:01
-
-
Save cpwnd/015c3f1568b34d6da6490e89a2616d45 to your computer and use it in GitHub Desktop.
Don't forget the nginx proxy pass configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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