5 messages in ru.sysoev.nginxRe: Multiple client_max_body_size (lo...
FromSent OnAttachments
Juan Fco. GiordanaJan 13, 2009 2:06 am 
Igor SysoevJan 13, 2009 2:09 am 
Juan Fco. GiordanaJan 13, 2009 3:14 am 
Igor SysoevJan 13, 2009 4:01 am 
Juan Fco. GiordanaJan 13, 2009 3:00 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Multiple client_max_body_size (location based)Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jan 13, 2009 2:09:30 am
List:ru.sysoev.nginx

On Tue, Jan 13, 2009 at 08:07:02AM -0200, Juan Fco. Giordana wrote:

Hello,

Is it possible to have multiple client_max_body_size per location directives?

I've tried this and doesn't seem to work, but the docs says that it is possible to have client_max_body_size in a location context.

I'm using nginx-0.6.34.

server { client_max_body_size 1m;

location = upload-image.php { client_max_body_size 3m; }

location = upload-file.php { client_max_body_size 10m; } }

Yes, it's possible, however, you should correct your locations:

- location = upload-image.php { + location = /upload-image.php {