matomo-org / matomo-nginx

Nginx configuration for running Matomo
406 stars 121 forks source link

try_files duplicate #74

Closed dscham closed 1 year ago

dscham commented 1 year ago

There is a try_files in the first defined location and one in location /. This prevents nginx from loading as it's complaining about duplicate try_files. How can I fix this?

dscham commented 1 year ago

Reading carefully is a blessing. Sorry for bothering you.

Rattkener commented 1 year ago

What was your solution here? I am seeing this as well and don't believe I am properly interpreting the error.

Rattkener commented 1 year ago

I see now, this is related to the comment: # protects against CVE-2019-11043. If this line is already included in your snippets/fastcgi-php.conf you can comment it here.

For future people running in to this, you likely need to comment that line out and it will work.

dscham commented 1 year ago

@Rattkener sorry, I didn't see the notification. But I'm glad you found it yourself. IIRC, it was written somewhere, that you have to change something in the config, so it works. I only glossed over that at first. Then saw it, reading carefully, later.