atom feed27 messages in ru.sysoev.nginxRe: Weird 0.8.11.1 connections spike
FromSent OnAttachments
Jeff WaughAug 29, 2009 5:50 am 
Igor SysoevAug 29, 2009 6:48 am 
Jeff WaughAug 29, 2009 7:32 am 
Igor SysoevAug 29, 2009 8:08 am 
Jeff WaughAug 29, 2009 8:45 am 
Igor SysoevAug 29, 2009 9:40 am 
Jim OhlsteinAug 30, 2009 7:59 am 
Igor SysoevAug 30, 2009 8:31 am 
Jim OhlsteinAug 30, 2009 8:52 am 
Igor SysoevAug 30, 2009 9:29 am 
Jim OhlsteinAug 30, 2009 7:55 pm 
Jeff WaughAug 30, 2009 8:03 pm 
Igor SysoevAug 30, 2009 10:23 pm 
Igor SysoevAug 30, 2009 10:46 pm 
Jeff WaughAug 30, 2009 11:36 pm 
Jeff WaughAug 31, 2009 12:14 am 
Igor SysoevAug 31, 2009 12:24 am 
Jeff WaughAug 31, 2009 12:55 am 
Igor SysoevAug 31, 2009 1:34 am 
Jeff WaughAug 31, 2009 1:36 am 
Jeff WaughAug 31, 2009 2:03 am 
Igor SysoevAug 31, 2009 3:37 am 
Igor SysoevAug 31, 2009 4:27 am.Other
Jim OhlsteinAug 31, 2009 5:13 am 
Igor SysoevAug 31, 2009 5:27 am 
Jeff WaughAug 31, 2009 6:53 am 
Igor SysoevAug 31, 2009 7:07 am 
Subject:Re: Weird 0.8.11.1 connections spike
From:Igor Sysoev (is@rambler-co.ru)
Date:Aug 31, 2009 4:27:58 am
List:ru.sysoev.nginx
Attachments:
patch-0.8.11.2 - 0.4k

On Mon, Aug 31, 2009 at 06:36:24PM +1000, Jeff Waugh wrote:

<quote who="Jeff Waugh">

set $wordpress_root /srv/wordpress/root;

Should've mentioned:

root /srv/example.com/root;

location / { try_files $uri $uri/ @wordroot; }

location @wordroot { internal; root $wordpress_root; index index.php; try_files $uri $uri/ /index.php?q=$request_uri; expires 5y; }

The point behind the above logic is to try and serve a file first from the domain's root (such as favicon.ico), then from the generic $wordpress_root for files provided by the WordPress distribution (such as everything under /wp-includes as with the .js example in the debugging), then finally pass anything else to PHP.

The patch.

-- Igor Sysoev http://sysoev.ru/en/

Index: src/http/ngx_http_core_module.c =================================================================== --- src/http/ngx_http_core_module.c (revision 2385) +++ src/http/ngx_http_core_module.c (working copy) @@ -1215,6 +1215,7 @@ (void) ngx_http_internal_redirect(r, &path, &args); }

+ ngx_http_finalize_request(r, NGX_DONE); return NGX_OK; }