From 5682b99b1785d7a53ded1f3d0d1e0ab938f1efc6 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Fri, 19 Apr 2013 13:10:12 +0200 Subject: [PATCH] Correction : nginx/site.d/lhc-stats/site.conf : valid_referers . --- etc/nginx/site.d/lhc-stats/site.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/etc/nginx/site.d/lhc-stats/site.conf b/etc/nginx/site.d/lhc-stats/site.conf index e162eda..f721c27 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; } -- 2.20.1