Conditional $uri and html from file

2017-11-07 Thread Joel Parker
I am using lua to parse out the username of the posted form and if the username == user and password == password. I want to change the URI to http://www.somesite.com//forum/unauthorized.html otherwise, I want it just to do: proxy_pass http://$http_host$uri$is_args$args; (http://somesite.com.com/

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread yang chen
Thank you very much, I did't see your reply in my email list or I ignored it, so I send twice, sorry, I got it. Thank you. Thank you. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread Valentin V. Bartenev
On Tuesday, 7 November 2017 18:02:44 MSK Valentin V. Bartenev wrote: > On Tuesday, 7 November 2017 14:36:47 MSK yang chen wrote: > > Thank you very much, but there is another question, if delta larger than > > 1ms, it will invole the ngx_event_expire_timers, why not 2ms or others? how > > do you ge

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread Valentin V. Bartenev
On Tuesday, 7 November 2017 14:36:47 MSK yang chen wrote: > Thank you very much, but there is another question, if delta larger than > 1ms, it will invole the ngx_event_expire_timers, why not 2ms or others? how > do you get the value? > if there are much events comming for 30s, and epoll_wait retur

Re: Proxy Request buffering not working as expected

2017-11-07 Thread Mohammad Puyandeh via nginx
>>If you add "--limit-rate 16000" to that curl command, do you see output >>from your back-end server immediately, or only after enough time has >>passed that your client has sent all of the content to nginx? It's after, so Nginx buffers correctly here and I was mistaken but now the question is,

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao) (Valentin V. Bartenev)

2017-11-07 Thread yang chen
Thank you very much, but there is another question, if delta larger than 1ms, it will invole the ngx_event_expire_timers, why not 2ms or others? how do you get the value? if there are much events comming for 30s, and epoll_wait return quickly (linux) which less than 1ms in each circle, and the ngx_