Correction : nginx : PATH_INFO et microcache.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Wed, 22 Oct 2014 01:52:28 +0000 (03:52 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Wed, 22 Oct 2014 01:52:28 +0000 (03:52 +0200)
etc/nginx/conf.d/fastcgi.conf
etc/nginx/site.d/lhc-stats-tls/local.conf

index fdc5f6d..c33cebc 100644 (file)
@@ -12,7 +12,7 @@ fastcgi_param DOCUMENT_ROOT     $document_root;
 fastcgi_param DOCUMENT_URI      $document_uri;
 fastcgi_param GATEWAY_INTERFACE CGI/1.1;
 fastcgi_param HTTPS             $https;
-fastcgi_param PATH_INFO         $fastcgi_script_name;
+fastcgi_param PATH_INFO         $fastcgi_path_info;
 #fastcgi_param PATH_TRANSLATED   $document_root$fastcgi_path_info;
 fastcgi_param QUERY_STRING      $query_string;
 fastcgi_param REMOTE_ADDR       $remote_addr;
index 49e2987..6905300 100644 (file)
@@ -9,14 +9,14 @@ location = /index.php {
        add_header X-Piwik-Cache $upstream_cache_status;
        expires epoch;
        fastcgi_cache microcache;
-       fastcgi_cache_bypass $no_cache;
+       fastcgi_cache_bypass $lhc_stats_no_cache;
        fastcgi_cache_use_stale error timeout invalid_header updating http_500;
        fastcgi_cache_valid 200 301 5m;
        fastcgi_cache_valid 302 3m;
        fastcgi_cache_valid 404 1m;
        fastcgi_ignore_headers Cache-Control Expires;
        fastcgi_index index.php;
-       fastcgi_no_cache $no_cache;
+       fastcgi_no_cache $lhc_stats_no_cache;
        fastcgi_param REDIRECT_STATUS 200;
        
        fastcgi_pass php_fpm_lhc_stats;