1 define(`DOMAIN',`org/heureux-cyclage')dnl
2 define(`SITE',`DOMAIN/stats')dnl
3 upstream php_fpm_lhc_stats {
4 server unix:CAT(sys/php5/fpm/org/heureux-cyclage/stats/socket);
7 map $request_method $lhc_stats_no_cache {
8 # NOTE: if non GET/HEAD, don't cache.
13 map $arg_module $lhc_stats_no_cache {
14 ## When we go through installation
15 ## or when we're on the dashboard for specific tasks.
16 Installation 1; # when invoking the installation module.
17 ~[^\&]*(?:Dashboard|Live|Goals|Admin|Manager) 1; # some tasks
19 map $arg_action $lhc_stats_no_cache {
20 ## The first installation steps don't invoke the installation module.
24 map $http_cookie $lhc_stats_no_cache {
25 ## Testing for the session cookie being present.
26 ## If there is then no caching is to be done.
27 ~PIWIK_SESSID 1; # Piwik session cookie
32 include /etc/nginx/SITE/common.conf;
33 access_log /home/www/log/SITE/access.log main;
34 error_log /home/www/log/SITE/error.log warn;
38 include /etc/nginx/SITE/common.conf;
39 include /etc/nginx/conf.d/ssl-pfs.conf;
40 ssl_certificate /etc/nginx/DOMAIN/crt.pem;
41 ssl_certificate_key /etc/nginx/DOMAIN/key.pem;
42 access_log /home/www/log/SITE/tls/access.log main;
43 error_log /home/www/log/SITE/tls/error.log warn;