Welcome! Log In Create A New Profile

Advanced

Use directive value inside nginx.conf

July 25, 2013 04:41AM
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!
SubjectAuthorPosted

Use directive value inside nginx.conf

olfativoJuly 25, 2013 04:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 165 on April 21, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready