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!
Subject Author Posted

Use directive value inside nginx.conf

olfativo July 25, 2013 04:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready