owncloud/php.conf: moar buffer
This commit is contained in:
parent
557a98cf80
commit
78c3594dd6
3 changed files with 32 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
# Attention, fichier géré par bcfg2 !
|
||||
|
||||
location ~ .cgi$ {
|
||||
if (!-e $request_filename) {
|
||||
return 404;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# Attention, fichier géré par bcfg2 !
|
||||
|
||||
location ~ .+\.php {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
if (!-e $document_root$fastcgi_script_name) {
|
||||
|
|
28
Cfg/etc/nginx/snippets/php.conf/php.conf.G00_owncloud
Normal file
28
Cfg/etc/nginx/snippets/php.conf/php.conf.G00_owncloud
Normal 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;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue