jerryboone | 1 Nov 2009 06:28
Picon

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

冉兵 | 1 Nov 2009 07:38
Picon
Favicon

Re: cache post-processor

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)

Chieu | 1 Nov 2009 08:45
Picon

Re: DHT upstream module + nginx patches

Hello

  * Support multi-threaded (one thread per disk) traversal of the
cache during cache manager start up.

does this patch solve the nginx multi-threaded problem?Or it can just used for your dht upstream module?

thanks
Maxim Dounin | 1 Nov 2009 12:15
Picon

Re: How to use cookie for request/conection limiting

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

cnginx.com | 1 Nov 2009 15:20
Picon

Re: CNginx中文学习社区上线了!

Nginx中文资料站欢迎各位,这里将是属于中国人的Nginx学习与交流中心!

http://www.cnginx.com/

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,18891,18892#msg-18892

cnginx.com | 1 Nov 2009 15:19
Picon

CNginx中文学习社区上线了!

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

ftrudeau | 1 Nov 2009 19:26
Picon

Re: From Apache to Nginx+php-fpm : How to port configuration ?

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

Paweł Stradomski | 2 Nov 2009 01:39
Picon
Gravatar

Undefined variable ends up as garbage

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

Mark Maunder | 2 Nov 2009 08:30
Favicon

nginx-0.7.63

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/

Valery Kholodkov | 2 Nov 2009 13:52
Picon
Favicon

Re: Saving file with upload_module


----- 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


Gmane