1 Nov 2009 06:28
Re: 10 000 req/s: tpd2 - why it is so fast?
regards! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,12472,18794#msg-18794
regards! Posted at Nginx Forum: http://forum.nginx.org/read.php?2,12472,18794#msg-18794
Thanks Maxim. Does this module work well with Nginx cache? -------------------------------------------------- From: "Maxim Dounin" <mdounin@...> Sent: Saturday, October 31, 2009 8:02 PM To: <nginx@...> Subject: Re: cache post-processor > Hello! > > On Sat, Oct 31, 2009 at 02:41:03PM +0800, 冉兵 wrote: > >> Hi, >> >> I'm wondering how this can be done: >> >> I'd like to take advantage of the Nginx cache, but some part of the html >> content is depending on the value of a cookie, for example, the name of >> the current logged in user. e.g. >> >> <html> >> <body> >> Hello, $user >> </body> >> </html> >> >> The html originates from an up stream and is cached. >>(Continue reading)
Hello! On Sat, Oct 31, 2009 at 06:27:21PM -0400, piavlo wrote: > Maxim Dounin Wrote: > ------------------------------------------------------- > > > Great, but it's pity I could not find it in > > documentation ( and I was reading the Russian one > > - which is supposed to be most comprehensive). > > > > Well, probably you should try again. If you still > > unable to, here is most > > close links: > > > > http://wiki.nginx.org/NginxHttpCoreModule#.24cooki > > e_COOKIE > > http://sysoev.ru/nginx/docs/http/ngx_http_core_mod > > ule.html#variables > > > Indeed i overlooked it. > > It is not clear to me if i any nginx builtin variable is accessible inside any module directive (which uses variables). > I mean there are several phases in HTTP request processing (like I saw here http://catap.ru/blog/2009/05/27/nginx-phases-of-handling-http-request/) - and it's not clear to me at which phase the $cookie_name is generated (or any other variable) and whether it's generated after or before the limit_req_zone/limit_zone directives are processes? Variable $cookie_name is available as soon as nginx has Cookie header from client. It happens before request processing phases. Maxim Dounin
Nginx中文资料站欢迎各位,这里将是属于中国人的Nginx学习与交流中心! http://www.cnginx.com/ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,18891,18892#msg-18892
CNginx中文学习社区上线了!欢迎Nginx学习者和高手!~~ http://www.cnginx.com/ Hi All, I have created a Chinese nginx learning site. WELCOME TO http://www.CNginx.com/ ~~ Posted at Nginx Forum: http://forum.nginx.org/read.php?2,18891,18891#msg-18891
Found the solution.
Hope this helps someone else.
[...]
# Handle PHP scripts via fastcgi
location ~ ^.+\.php$
{
# set document root
root ;
# test for file existence
# fallback to bootstrap to display 404
try_files $uri /index.php?$args;
# fastcgi setup
fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# include common fastcgi params
include /etc/nginx/fastcgi_params;
}
[...]
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,18743,18959#msg-18959
Hello, I have found a possible bug in nginx. I had a variable defined with "set" and used with "fastcgi_param" in one of virtual hosts definition. Then I copied the site file to create a new virtual host. I've removed the "set" line, but not the "fastcgi_param" one. It caused random bytes to be inserted into that fastcgi parameter. Everything else was OK, but those random bytes look suspicious (possible memory violation?) I'm using nginx/0.6.32, debian build. -- -- Paweł Stradomski
Is there a bug tracking system for nginx or a list of known issues for 0.7.63? Thanks, Mark. -- -- -- Mark Maunder <mark@...> http://feedjit.com/
----- Grzegorz Sienko <staff@...> wrote: > Hello. > > I have a little problem with upload_module. According to > documentation: http://www.grid.net.ru/nginx/upload.en.html i will > quote: > > "The content of each uploaded file then could be read from a file > specified by $upload_tmp_path variable or the file could be simply > moved to ultimate destination." > > and my question is how to moved, or I would say, save these files to > this ultimate destination. The goal that I want to achieve is simple. > Using upload_module i want to save file to a disk. According to this > sentence above, I thinks is possible, but I don't really now how to do > that. In every single page with some example configuration of this > module, file is forwarded after upload to backend server. I just want > to save this file on hard drive. It's possible? This is what the module actually does. The $upload_tmp_path contains a path where the content of the file is saved to. This path might be regarded as temporarily or permanent. -- -- Regards, Valery Kholodkov
RSS Feed350 | |
|---|---|
351 | |
558 | |
399 | |
471 | |
404 | |
370 | |
459 | |
364 | |
464 | |
401 | |
441 | |
471 | |
561 | |
700 | |
624 | |
499 | |
470 | |
594 | |
594 | |
613 | |
593 | |
542 | |
579 | |
646 | |
548 | |
462 | |
567 | |
528 | |
503 | |
521 | |
616 | |
492 | |
643 | |
429 | |
531 | |
543 | |
505 | |
569 | |
558 | |
559 | |
707 | |
669 | |
741 | |
931 | |
650 | |
772 | |
774 | |
758 | |
832 | |
935 | |
596 | |
532 | |
379 | |
371 | |
512 | |
616 | |
719 | |
548 | |
568 | |
586 | |
574 | |
494 | |
413 | |
458 | |
346 | |
258 | |
300 | |
290 | |
284 | |
170 | |
107 | |
108 | |
94 | |
110 | |
92 | |
133 | |
100 | |
60 | |
119 | |
81 | |
18 | |
15 | |
11 | |
7 | |
15 | |
5 | |
7 | |
4 | |
7 | |
5 | |
11 | |
6 | |
2 | |
4 | |
3 | |
6 | |
1 | |
5 | |
5 |