Forum: NGINX Use directive value inside nginx.conf

2974d09ac2541e892966b762aad84943?d=identicon&s=25 olfativo (Guest)
on 2013-07-25 10:42
(Received via mailing list)
Hi!

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
nginx.conf
Is there any way to do this without moving the declaration of that
directive
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>;
   }
...
}

Thanks!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,241221,241221#msg-241221
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.