From: Ludovic CHEVALIER Date: Wed, 2 Mar 2016 09:37:17 +0000 (+0100) Subject: Modifications : etc/nginx/site.d/lhc-wiklou/site.conf X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/%7B%7B%20url_for%28%27static%27%2C%20filename=%27css/%40%20%27entree_url%27%20=%3E%20%27URL%20of%20your%20site%27%2C%20%27entree_url_2%27%20=%3E%20%27Site%20URL%27%2C%20%27erreur_connect_deja_existant%27%20=%3E%20%27There%20is%20already%20a%20server%20with%20that%20name%20%27%2C%20%27erreur_email_deja_existant%27%20=%3E%20%27This%20email%20address%20is%20already%20registered.%27%2C%20%27erreur_nom_connect_incorrect%27%20=%3E%20%27Server%20name%20not%20allowed%27%2C%20%27erreur_plugin_desinstalation_echouee%27%20=%3E%20%27Uninstallation%20of%20the%20plugin%20failed.%20However%2C%20you%20may%20deactivate%20it.%27%2C%20%27erreur_plugin_fichier_absent%27%20=%3E%20%27File%20missing%27%2C%40%40%20-198%2C16%20%20170%2C12%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=d335b077787a912c8fd86c83129c4e7aebb994c0;p=lhc%2Fateliers.git Modifications : etc/nginx/site.d/lhc-wiklou/site.conf --- 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; }