Nginx can not upload image to cloudinary (hosted in AWS)

2014-07-17 Thread email_ardi
Hi, Im new in Nginx. After read few articles, i think Nginx is faster than apache (if i'm not mistaken) Currently we're developing a project in apache. But when we set up a "user acceptance test", our clients complain that our site is running slow. So we migrate to nginx, everything seems to be

Re: Limit connections to endpoint

2014-07-17 Thread Valentin V. Bartenev
On Thursday 17 July 2014 06:57:51 vocativus wrote: > ok I found that yesterday, and as a variable in limit_req_zone I should use > some constant eg: set $con 10; > > and it looks like: > > set $con 10; > limit_req_zone $con zone=one:15m rate=10r/s; You don't need "set" to create a constant. The

Re: Limit connections to endpoint

2014-07-17 Thread vocativus
ok I found that yesterday, and as a variable in limit_req_zone I should use some constant eg: set $con 10; and it looks like: set $con 10; limit_req_zone $con zone=one:15m rate=10r/s; and it should work as I want? Aking, because I'm testnig it now, and it dont work properly. Posted at Nginx For

Re: Limit connections to endpoint

2014-07-17 Thread Valentin V. Bartenev
On Thursday 17 July 2014 05:34:19 vocativus wrote: > Hello, > > I have a situation: opening an endpoint under location: /api/info uses a lot > of resources. If ~20 people open it, the service goes down. For a several > months it is impossible to improve 'info' to not kill the servce, so I have > t

Limit connections to endpoint

2014-07-17 Thread vocativus
Hello, I have a situation: opening an endpoint under location: /api/info uses a lot of resources. If ~20 people open it, the service goes down. For a several months it is impossible to improve 'info' to not kill the servce, so I have to "repair" it in other way. It would be perfect if in nginx co