owncloud/php.conf: moar buffer

This commit is contained in:
Daniel STAN 2015-02-05 12:54:38 +01:00
parent 557a98cf80
commit 78c3594dd6
3 changed files with 32 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# Attention, fichier géré par bcfg2 !
location ~ .cgi$ {
if (!-e $request_filename) {
return 404;

View file

@ -1,3 +1,5 @@
# Attention, fichier géré par bcfg2 !
location ~ .+\.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
if (!-e $document_root$fastcgi_script_name) {

View file

@ -0,0 +1,28 @@
# Attention, fichier géré par bcfg2 !
location ~ .+\.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
if (!-e $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_buffer_size 256k;
fastcgi_buffers 16 256k;
fastcgi_busy_buffers_size 512k;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/php_(ping|status)$ {
access_log off;
allow 127.0.0.1;
deny all;
root /usr/share/nginx/html;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}