2 include /etc/nginx/conf.d/ssl.conf;
3 ssl_certificate /etc/nginx/x509.d/lhc-stats-tls/crt.pem;
4 ssl_certificate_key /etc/nginx/x509.d/lhc-stats-tls/key.pem;
6 location = /index.php {
7 ## Relay all index.php requests to fastcgi.
8 include /etc/nginx/conf.d/fastcgi.conf;
9 add_header X-Piwik-Cache $upstream_cache_status;
11 fastcgi_cache microcache;
12 fastcgi_cache_bypass $no_cache;
13 fastcgi_cache_use_stale error timeout invalid_header updating http_500;
14 fastcgi_cache_valid 200 301 5m;
15 fastcgi_cache_valid 302 3m;
16 fastcgi_cache_valid 404 1m;
17 fastcgi_ignore_headers Cache-Control Expires;
18 fastcgi_index index.php;
19 fastcgi_no_cache $no_cache;
20 fastcgi_param REDIRECT_STATUS 200;
22 fastcgi_pass php5_fpm_lhc_stats;