hello, I use error_page = /500.html to show myself 500 page, and for some reason, I need ssi include in 500.html, for example: 500.html <!--# include virtual="/fastcgi/global" --> <!--# include virtual="/fastcgi/cap" --> <!--# include virtual="/fastcgi/header" --> if fastcgi uby xinghua_hi - Nginx Mailing List - English
hello, I still can't understand why accept_mutex cause disbalance. In code below, multi worker will try to get mutex and the question is , why one worker can always get the mutex ? I test many times, find that one worker can always accept new connection much more than others. Thanks very much. if (ngx_use_accept_mutex) { if (ngx_accept_disabled > 0) {by xinghua_hi - Nginx Mailing List - English
hello, I use ab to test performance. but when i turn on accept_mutex, I found the num of connection for every nginx worker is not balance. for example, I have 4 core and start 4 nginx worker. ab -n 300000 -c 1000 -k "http://XXX/" the establish connection of nginx worker (netstat -antp|grep ESTABLISHED|awk -F" " '{print $7}'|sort|uniq -c) 644 246by xinghua_hi - Nginx Mailing List - English
hi: In man epoll , a section refer to "epoll edge trigger starvation problem", and around to this we need to maintain a ready list instead of read socket until EAGAIN. but i didn't find any related solution code in nginx. In request body read function `ngx_http_do_read_client_request_body`, it seems that nginx will read socket buffer until EAGAIN or has read Content-length data. so if aby xinghua_hi - Nginx Development
hi: In man epoll , a section refer to "epoll edge trigger starvation problem", and around to this we need to maintain a ready list instead of read socket until EAGAIN. but i didn't find any related solution code in nginx. In request body read function `ngx_http_do_read_client_request_body`, it seems that nginx will read socket buffer until EAGAIN or has read Content-length daby xinghua_hi - Nginx Mailing List - English
Hello, as you said, you use haproxy in front of nginx, that means the request will be proxied by haproxy first, and then be proxied by nginx, although haproxy can proxy request immediately, but nginx can not pass the request on-the-fly, it will buffer request anagin. Have i made some mistakes? thanks a lotby xinghua_hi - Nginx Mailing List - English
Hello, thanks for your reply. but i am still confused with the workground about haproxy. i know haproxy dose not buffer request, but if use haproxy in front of nginx, when haproxy pass request to nginx, nginx will still buffer the request to disk Thanks a lotby xinghua_hi - Nginx Mailing List - English
Hello, I have two questions. 1. why does backend has troubles to parse request? because parsing huge request make heavy load? 2. why haproxy in front nginx can workaround the issue? I think nginx will still buffer the request to temp file Thanks a lotby xinghua_hi - Nginx Mailing List - English
thanks, but a new question comming。 I try to resolve my problem according to your method: (1) “set" is also an location-level rewrite module directive, so the conf like this location / { root XXX; set $var "haha"; error_page 413 /413.${var}.html; } will return 404, but 413.haha.html exists my root dir。I see the debug logby xinghua_hi - Nginx Mailing List - English
thank you very much, but i sitll want to know why error_page can't work normally in if block. I see the error_page 's context can be " if in location" in the document. the whole location conf like below, error_page can not work: client_max_body_size 50k; location / { set $var "haha"; if ($var = "haha") { error_paby xinghua_hi - Nginx Mailing List - English
please help me, thank youby xinghua_hi - Nginx Mailing List - English
I want to display different pages when 413 code return, for example set $var 1; if ($var = 1) { error_page 413 /413_old.html; } if ($var =2) { error_page 413 /413_new.html; } error_page can not work, but I write error_page directive in location block directly instead of using if directive, it can work normallyby xinghua_hi - Nginx Mailing List - English
Hi,all: I have an urgency task and I need to compile nginx with my own http moudle for windows,I know cygwin can help me but if i want to use nginx on windows independent of the .dll file of cygwin,I need only one .exe file ,what should I do?Thank you very much.by xinghua_hi - Nginx Mailing List - English
I am a nginx development novice.Now i need to process the http response message body.For example , get all numbers in the response html,then every number times two and use new number instead of the original number. Do I need to write a new http module or use the existing module? Which existing module can I imitate?Which function should i foucs on ?by xinghua_hi - Nginx Mailing List - English