X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-wiklou%2Fsite.conf;fp=etc%2Fnginx%2Fsite.d%2Flhc-wiklou%2Fsite.conf;h=5ef383cb83d9dcc845e1c45bda69f979f6ec5e7a;hb=d335b077787a912c8fd86c83129c4e7aebb994c0;hp=f01b4602882ac220ed9a690003cb5d17a758a528;hpb=97b6ff5eeba507919f96b5cc770fa3cc8a123e77;p=lhc%2Fateliers.git diff --git a/etc/nginx/site.d/lhc-wiklou/site.conf b/etc/nginx/site.d/lhc-wiklou/site.conf index f01b460..5ef383c 100644 --- a/etc/nginx/site.d/lhc-wiklou/site.conf +++ b/etc/nginx/site.d/lhc-wiklou/site.conf @@ -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; }