Modification : etc/nginx/site.d/lhc-stats/site.conf : intègre de la conf de piwik...
[lhc/ateliers.git] / etc / nginx / site.d / lhc-stats-tls / local.conf
index 1d12581..d81e006 100644 (file)
@@ -2,3 +2,24 @@ listen 443;
 include /etc/nginx/conf.d/ssl.conf;
 ssl_certificate     /etc/nginx/x509.d/lhc-stats-tls/crt.pem;
 ssl_certificate_key /etc/nginx/x509.d/lhc-stats-tls/key.pem;
+
+location = /index.php {
+ ## Relay all index.php requests to fastcgi.
+       include /etc/nginx/conf.d/fastcgi.conf;
+       add_header X-Piwik-Cache $upstream_cache_status;
+       expires epoch;
+       fastcgi_cache microcache;
+       fastcgi_cache_bypass $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_param REDIRECT_STATUS 200;
+       
+       fastcgi_pass php5_fpm_lhc_stats;
+ }
+
+# vim: ft=sh