Forum: NGINX Use directive value inside nginx.conf

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
olfativo (Guest)
on 2013-07-25 10:42
(Received via mailing list)

I need to send to my application through "fastcgi_param" the value of
"client_max_body_size" directive, which is defined in http block in
Is there any way to do this without moving the declaration of that
from http block?

So I have this:

http {
   client_max_body_size 5m;

And need this:

server {
   location xxx {
       fastcgi_param  SOME_NAME  <value of client_max_body_size>;


Posted at Nginx Forum:,241221,241221#msg-241221
This topic is locked and can not be replied to.