Welcome! Log In Create A New Profile


Use directive value inside nginx.conf

July 25, 2013 04:41AM

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>;


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: 89
Record Number of Users: 5 on August 04, 2015
Record Number of Guests: 244 on October 02, 2015
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready