Welcome! Log In Create A New Profile

Advanced

RE: client_max_body_size for a location {} ? Possible?

Joseph Cabezas
June 05, 2012 03:34PM
Hello Matt,

Thank you very much. Is there anyway to match this location ONLY for a specific IP?

location /wordpress {
client_body_buffer_size 1M;
client_max_body_size 2M;
proxy_pass http://backend1;
}

In other words I only one IP 1.1.1.1 to be able to use those special buffers for that URL.. everybody else should use the buffers stated at the httpd section.


Regards,
Joseph


> Date: Tue, 5 Jun 2012 22:40:55 +0400
> From: mdounin@mdounin.ru
> To: nginx@nginx.org
> Subject: Re: client_max_body_size for a location {} ? Possible?
>
> Hello!
>
> On Tue, Jun 05, 2012 at 05:31:25PM +0000, Joseph Cabezas wrote:
>
> >
> > Answering myself partially
> >
> > location /wordpress/wp-admin { client_max_body_size 1m; } <-- does that apply for evert sub directory such as /wordpress/wp-admin/dir1 /wordpress/wp-admin/dir2/app.php etc
>
> See here for details explanation on how locations work:
>
> http://nginx.org/r/location
>
> And here for an answer to your original question:
>
> http://nginx.org/r/client_max_body_size
> http://nginx.org/r/client_body_buffer_size
>
> The "context" in the directive description gives a list of places
> where the directive is allowed.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

client_max_body_size for a location {} ? Possible?

Joseph Cabezas June 05, 2012 01:02PM

RE: client_max_body_size for a location {} ? Possible?

Joseph Cabezas June 05, 2012 01:32PM

Re: client_max_body_size for a location {} ? Possible?

Maxim Dounin June 05, 2012 02:42PM

RE: client_max_body_size for a location {} ? Possible?

Joseph Cabezas June 05, 2012 03:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready