## 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;
+ server_names
+ .cyclocoop.org
+ .heureux-cyclage.org
+ .ptitvelo.net
+ .velosenville.org
+ .wiklou.org;
if ($invalid_referer) {
return 444;
}
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.