Correction : nginx/site.d/lhc-stats/site.conf : valid_referers .
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Fri, 19 Apr 2013 11:10:12 +0000 (13:10 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Sat, 20 Apr 2013 15:49:30 +0000 (17:49 +0200)
etc/nginx/site.d/lhc-stats/site.conf

index e162eda..f721c27 100644 (file)
@@ -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;
         }