Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: client max body size





2014-03-30 19:47 GMT+06:00 ast-ross <nginx-forum@xxxxxxxx>:
client_max_body_size

1 index.php (YII Framework)
:

========================
server {
listen 80;
server_name example.com;
client_max_body_size 1m;

set $home_root "/var/www/mysite";
root $home_root/public;

location /manage {
client_max_body_size 100m;
try_files $uri $uri/ /index.php?$args;
}

location / {
index index.php index.html;
try_files $uri $uri/ /index.php?$args;
}

location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(.*)$;
set $fsn /index.php;
if (-f $document_root$fastcgi_script_name) { set $fsn
$fastcgi_script_name; }
fastcgi_pass backend-php;
fastcgi_param SCRIPT_FILENAME $document_root$fsn;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fsn;
include fastcgi_params;
}

}
========================


/manage/publication/edit/12 /manage/publication/delete/12
/manage/publication/12/files ..

URL manage
client_max_body_size .
, /manage
/ client_max_body_size = 1m

?

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,248855,248855#msg-248855

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.