X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fnginx%2Fsite.d%2Flhc-stats%2Fsite.conf;h=986e3b93b99633a24b861ae0cf929329ac88cb09;hb=9075978ae94310fa7a27d9881d3cecc6150ca3e9;hp=e162eda9b90cc12489950e8b2695083eb7a541f4;hpb=93c8693331c0dbd016e03b91be8be0a16f1901de;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-stats/site.conf b/etc/nginx/site.d/lhc-stats/site.conf index e162eda..986e3b9 100644 --- a/etc/nginx/site.d/lhc-stats/site.conf +++ b/etc/nginx/site.d/lhc-stats/site.conf @@ -19,11 +19,12 @@ location ~* ^.+\.(?:css|gif|jpe?g|js|png|swf)$ { ## Defining the valid referers. ## Disallow any usage of piwik assets if referer is non valid. valid_referers none blocked - *.cyclocoop.org - *.heureux-cyclage.org - *.ptitvelo.net - *.velosenville.org - *.wiklou.org; + server_names + .cyclocoop.org + .heureux-cyclage.org + .ptitvelo.net + .velosenville.org + .wiklou.org; if ($invalid_referer) { return 444; } @@ -59,7 +60,7 @@ location = /piwik.php { fastcgi_no_cache $no_cache; fastcgi_param REDIRECT_STATUS 200; - fastcgi_pass php5_fpm_lhc_stats; + fastcgi_pass php_fpm_lhc_stats; } location ~* ^.+\.php$ { ## Any other attempt to access PHP files redirects to the root.