matomo-org / matomo-nginx

Nginx configuration for running Matomo
408 stars 121 forks source link

Syntax Error #67

Open tyfai opened 2 years ago

tyfai commented 2 years ago

Hi,

I think there might be an error with the syntax of line 86 of https://github.com/matomo-org/matomo-nginx/blob/master/sites-available/matomo.conf.

I had to change it from:

location ~/(.*\.md|LEGALNOTICE|LICENSE) {`

To:

location ~ /(.*\.md|LEGALNOTICE|LICENSE) {

The difference is the space after the tilde character.

Then these files were served correctly by Nginx.

tyfai commented 2 years ago

Thanks for fixing this. :)