Modifications : etc/nginx/site.d/lhc-wiklou/site.conf
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 2 Mar 2016 09:37:17 +0000 (10:37 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 2 Mar 2016 09:47:00 +0000 (10:47 +0100)
etc/nginx/site.d/lhc-wiklou/site.conf

index f01b460..5ef383c 100644 (file)
@@ -14,9 +14,7 @@ location / {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
                fastcgi_index  index.php ;
-               fastcgi_buffers 16 16k;
-               fastcgi_buffer_size 32k;
-               include fastcgi_params;
+               include /etc/nginx/conf.d/fastcgi.conf;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
 }
@@ -54,15 +52,12 @@ location ~ /.ht { deny all; }
 
 # Handling for the article path
 location /wiki {
-       include /etc/nginx/fastcgi_params;
+       include /etc/nginx/conf.d/fastcgi.conf;
        # article path should always be passed to index.php
        fastcgi_param SCRIPT_FILENAME   $document_root/index.php;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
        fastcgi_index  index.php ;
-       fastcgi_buffers 16 16k;
-       fastcgi_buffer_size 32k;
-       include fastcgi_params;
 }
 
 # Thumbnail 404 handler, only called by try_files when a thumbnail does not exist
@@ -72,7 +67,7 @@ location @thumb {
        rewrite ^/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2&archived=1;
        
        # Run the thumb.php script
-       include /etc/nginx/fastcgi_params;
+       include /etc/nginx/conf.d/fastcgi.conf;
        fastcgi_param SCRIPT_FILENAME   $document_root/thumb.php;
        fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
 }