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

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: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready