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

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: 101
Record Number of Users: 7 on October 18, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready