# Nginx 0.8.47 php-fpm error\_page not working

**URL:** <https://www.ruby-forum.com/t/nginx-0-8-47-php-fpm-error-page-not-working/246534>\
**Category:** NGINX\
**Created:** [August 8, 2010, 8:38am UTC](https://www.ruby-forum.com/t/nginx-0-8-47-php-fpm-error-page-not-working/246534 "2010-08-08T08:38:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nginx\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f19dbf/32.png) [@nginx\_newbie](https://www.ruby-forum.com/u/nginx_newbie)\
**Post date:** [August 8, 2010, 8:38am UTC](https://www.ruby-forum.com/t/nginx-0-8-47-php-fpm-error-page-not-working/246534/1 "2010-08-08T08:38:13Z")

</div>

Dear Nginx Experts / Friends,

I am new to nginx. Just getting my feet wet since around 15 days.  
I am sorry for this extremely long post. Just wanted to give all  
details  
for quick understanding of the problem hence long code attachments.

I have installed CentOS 5.5 + nginx + php-fpm on [linode.com](http://linode.com) VPS.  
Default error\_page 404 in nginx.conf for server localhost is working.

But for domain name based configuration [1] error\_page is not working.  
I disabled php-fpm to see if that is the problem, but still I do not see  
the error404.htm  
page. I am also attaching my nginx.conf [2], fastcgi\_params [3] &  
php-fpm.conf [4] for reference.  
I even did a debug [5] but could not find any problem from the same.

## Attachment One [/etc/nginx/sites-enabled/mutually4u.com]

server {  
listen 80;  
server\_name [www.mutually4u.com](http://www.mutually4u.com) [mutually4u.com](http://mutually4u.com);  
access\_log /srv/www/mutually4u.com/logs/access.log;  
error\_log /srv/www/mutually4u.com/logs/error.log debug;

error\_page 404 /error404.htm;

location /error404.htm {  
root /srv/www/mutually4u.com/public\_html;  
}

```
    location = /favicon.ico {
        #empty_gif;
        return 204;
    }

    location / {
            root /srv/www/mutually4u.com/public_html;
            index index.htm;

            if (-f $request_filename) {
                    break;
            }
    }

    location ~ \.htm$
    {
            root /srv/www/mutually4u.com/public_html;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_param SCRIPT_FILENAME

```

/srv/www/mutually4u.com/public\_html$fastcgi\_script\_name;  
fastcgi\_param PATH\_INFO $fastcgi\_script\_name;  
include /etc/nginx/fastcgi\_params;  
}

## }

## Attachment Two [/etc/nginx/nginx.conf]

user nginx;  
worker\_processes 1;

events {  
worker\_connections 1024;  
}

http {  
include mime.types;  
default\_type application/octet-stream;

```
log_format main '$remote_addr - $remote_user [$time_local]

```

“$request” ’  
'$status $body\_bytes\_sent “$http\_referer” ’  
‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

```
access_log logs/access.log main;
error_log logs/error.log;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

gzip on;
gzip_comp_level 1;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript

```

text/xml application/xml application/xml+rss text/javascript;

```
server {
    listen 80;
    server_name localhost;

    location / {
        root html;
        index index.html index.htm;
    }

    location = /favicon.ico {
        return 204;
    }

    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root html;
    }

    location ~ \.php$ {
        root html;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME

```

/scripts$fastcgi\_script\_name;  
include fastcgi\_params;  
}  
}

```
include /etc/nginx/sites-enabled/*;

```

## }

## Attachment Three [/etc/nginx/fastcgi\_params]

fastcgi\_connect\_timeout 60;  
fastcgi\_send\_timeout 180;  
fastcgi\_read\_timeout 180;  
fastcgi\_buffer\_size 128k;  
fastcgi\_buffers 4 256k;  
fastcgi\_busy\_buffers\_size 256k;  
fastcgi\_temp\_file\_write\_size 256k;  
fastcgi\_intercept\_errors on;

fastcgi\_param QUERY\_STRING $query\_string;  
fastcgi\_param REQUEST\_METHOD $request\_method;  
fastcgi\_param CONTENT\_TYPE $content\_type;  
fastcgi\_param CONTENT\_LENGTH $content\_length;

fastcgi\_param SCRIPT\_NAME $fastcgi\_script\_name;  
fastcgi\_param REQUEST\_URI $request\_uri;  
fastcgi\_param DOCUMENT\_URI $document\_uri;  
fastcgi\_param DOCUMENT\_ROOT $document\_root;  
fastcgi\_param SERVER\_PROTOCOL $server\_protocol;

fastcgi\_param GATEWAY\_INTERFACE CGI/1.1;  
fastcgi\_param SERVER\_SOFTWARE nginx/$nginx\_version;

fastcgi\_param REMOTE\_ADDR $remote\_addr;  
fastcgi\_param REMOTE\_PORT $remote\_port;  
fastcgi\_param SERVER\_ADDR $server\_addr;  
fastcgi\_param SERVER\_PORT $server\_port;  
fastcgi\_param SERVER\_NAME $server\_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect

## fastcgi\_param REDIRECT\_STATUS 200;

## Attachment Four [/etc/php/php-fpm.conf]
\<?xml version="1.0" ?\>

All relative paths in this config are relative to php’s install prefix

```
Pid file
/usr/local/logs/php-fpm.pid

Error log file
/usr/local/logs/php-fpm.log

Log level
notice

When this amount of php processes exited with SIGSEGV or SIGBUS ...
10

... in a less than this interval of time, a graceful restart will be

```

initiated.  
Useful to work around accidental curruptions in accelerator’s shared  
memory.  
1m

```
Time limit on waiting child's reaction on signals from master
5s

Set to 'no' to debug fpm
yes

  Name of pool. Used in logs and stats.
  default

  Address to accept fastcgi requests on.
  Valid syntax is 'ip.ad.re.ss:port' or just 'port' or

```

‘/path/to/unix/socket’  
127.0.0.1:9000

```
    Set listen(2) backlog
    -1

    Set permissions for unix socket, if one used.
    In Linux read/write permissions must be set in order to allow

```

connections from web server.  
Many BSD-derrived systems allow connections regardless of  
permissions.  
nginx  
nginx  
0666

```
  Additional php.ini defines, specific to this pool of workers.

  /usr/sbin/sendmail -t -i
  0

  Unix user of processes
  nginx

  Unix group of processes
  nginx

  Process manager settings

    Sets style of controling worker process count.
    Valid values are 'static' and 'apache-like'
    static

    Sets the limit on the number of simultaneous requests that will 

```

be  
served.  
Equivalent to Apache MaxClients directive.  
Equivalent to PHP\_FCGI\_CHILDREN environment in original php.fcgi  
Used with any pm\_style.  
5

```
    Settings group for 'apache-like' pm style

      Sets the number of server processes created on startup.
      Used only when 'apache-like' pm_style is selected
      20

      Sets the desired minimum number of idle server processes.
      Used only when 'apache-like' pm_style is selected
      5

      Sets the desired maximum number of idle server processes.
      Used only when 'apache-like' pm_style is selected
      35

  The timeout (in seconds) for serving a single request after which 

```

the  
worker process will be terminated  
Should be used when ‘max\_execution\_time’ ini option does not stop  
script execution for some reason  
‘0s’ means ‘off’  
0s

```
  The timeout (in seconds) for serving of single request after which 

```

a  
php backtrace will be dumped to slow.log file  
‘0s’ means ‘off’  
0s

```
  The log file for slow requests
  logs/slow.log

  Set open file desc rlimit
  1024

  Set max core size rlimit
  0

  Chroot to this directory at the start, absolute path

  Chdir to this directory at the start, absolute path

  Redirect workers' stdout and stderr into main error log.
  If not set, they will be redirected to /dev/null, according to

```

FastCGI specs  
yes

```
  How much requests each process should execute before respawn.
  Useful to work around memory leaks in 3rd party libraries.
  For endless request processing please specify 0
  Equivalent to PHP_FCGI_MAX_REQUESTS
  500

  Comma separated list of ipv4 addresses of FastCGI clients that

```

allowed to connect.  
Equivalent to FCGI\_WEB\_SERVER\_ADDRS environment in original  
php.fcgi  
(5.2.2+)  
Makes sense only with AF\_INET listening socket.  
127.0.0.1

```
  Pass environment variables like LD_LIBRARY_PATH
  All $VARIABLEs are taken from current environment

    $HOSTNAME
    /usr/local/bin:/usr/bin:/bin
    /tmp
    /tmp
    /tmp
    $OSTYPE
    $MACHTYPE
    2

```

* * *

## Attachment Five [error\_log with debug output for browser requesting non-existing file]

2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer del: 3: 1346458458  
2010/08/08 11:20:52 [debug] 18647#0: \*1 rewrite phase: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: “/”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: “favicon.ico”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: ~ “.htm$”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 using configuration “.htm$”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http cl:-1 max:1048576  
2010/08/08 11:20:52 [debug] 18647#0: \*1 rewrite phase: 2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 post rewrite phase: 3  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 4  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 5  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 6  
2010/08/08 11:20:52 [debug] 18647#0: \*1 access phase: 7  
2010/08/08 11:20:52 [debug] 18647#0: \*1 access phase: 8  
2010/08/08 11:20:52 [debug] 18647#0: \*1 post access phase: 9  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http init upstream, client  
timer: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 epoll add event: fd:3 op:3  
ev:80000005  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SCRIPT\_FILENAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SCRIPT\_FILENAME:  
/srv/www/mutually4u.com/public\_html/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “PATH\_INFO”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “PATH\_INFO:  
/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“QUERY\_STRING”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: "QUERY\_STRING: "  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“REQUEST\_METHOD”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “GET”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REQUEST\_METHOD:  
GET”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“CONTENT\_TYPE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “CONTENT\_TYPE: "  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“CONTENT\_LENGTH”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “CONTENT\_LENGTH:  
"  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SCRIPT\_NAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SCRIPT\_NAME:  
/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REQUEST\_URI”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REQUEST\_URI:  
/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“DOCUMENT\_URI”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “DOCUMENT\_URI:  
/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“DOCUMENT\_ROOT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “DOCUMENT\_ROOT:  
/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SERVER\_PROTOCOL”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “HTTP/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_PROTOCOL:  
HTTP/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“GATEWAY\_INTERFACE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “CGI/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“GATEWAY\_INTERFACE: CGI/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SERVER\_SOFTWARE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “nginx/”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “0.8.47”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_SOFTWARE:  
nginx/0.8.47”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REMOTE\_ADDR”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“122.174.127.181”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REMOTE\_ADDR:  
122.174.127.181”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REMOTE\_PORT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “2300”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REMOTE\_PORT:  
2300”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_ADDR”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“173.230.153.171”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_ADDR:  
173.230.153.171”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_PORT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “80”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_PORT:  
80”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_NAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_NAME:  
[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“REDIRECT\_STATUS”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “200”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REDIRECT\_STATUS:  
200”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_HOST:  
[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_CONNECTION:  
keep-alive”  
2010/08/08 11:20:52 [debug] 18647#0: _1 fastcgi param:  
“HTTP\_CACHE\_CONTROL: max-age=0”  
2010/08/08 11:20:52 [debug] 18647#0: 1 fastcgi param: "HTTP\_ACCEPT:  
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/_;q=0.5”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_USER\_AGENT:  
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3  
(KHTML, like Gecko) Chrome/6.0.466.0 Safari/534.3”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“HTTP\_ACCEPT\_ENCODING: gzip,deflate,sdch”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“HTTP\_ACCEPT\_LANGUAGE: en-US,en;q=0.8”  
2010/08/08 11:20:52 [debug] 18647#0: _1 fastcgi param:  
"HTTP\_ACCEPT\_CHARSET: ISO-8859-1,utf-8;q=0.7,_;q=0.3”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http cleanup add: 092D03FC  
2010/08/08 11:20:52 [debug] 18647#0: \*1 get rr peer, try: 1  
2010/08/08 11:20:52 [debug] 18647#0: \*1 socket 11  
2010/08/08 11:20:52 [debug] 18647#0: \*1 epoll add connection: fd:11  
ev:80000005  
2010/08/08 11:20:52 [debug] 18647#0: \*1 connect to 127.0.0.1:9000, fd:11  
#2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream connect: -2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer add: 11:  
60000:1346458463  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http finalize request: -4,  
“/test\_htm.htm?” a:1, c:2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http request count:2 blk:0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http run request:  
“/test\_htm.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream check client,  
write event:1, “/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream recv(): -1 (11:  
Resource temporarily unavailable)  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream request:  
“/test\_htm.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream send request  
handler  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream send request  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer buf fl:0 s:992  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer in: 092D0418  
2010/08/08 11:20:52 [debug] 18647#0: \*1 writev: 992  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer out: 00000000  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer del: 11: 1346458463  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer add: 11:  
180000:1346578464  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream request:  
“/test\_htm.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream process header  
2010/08/08 11:20:52 [debug] 18647#0: \*1 malloc: 093189B0:131072  
2010/08/08 11:20:52 [debug] 18647#0: \*1 recv: fd:11 128 of 131072  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 06  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 65  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 03  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record length: 101  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header: “Status:  
404 Not Found”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header:  
“X-Powered-By: PHP/5.2.14”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header:  
“Content-type: text/html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 1  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header done  
2010/08/08 11:20:52 [debug] 18647#0: \*1 finalize http upstream request:  
404  
2010/08/08 11:20:52 [debug] 18647#0: \*1 finalize http fastcgi request  
2010/08/08 11:20:52 [debug] 18647#0: \*1 free rr peer 1 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 close http upstream connection:  
11  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer del: 11: 1346578464  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http finalize request: 404,  
“/test\_htm.htm?” a:1, c:1  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http special response: 404,  
“/test\_htm.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 internal redirect:  
“/error404.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 rewrite phase: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: “/”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: “favicon.ico”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: “error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 test location: ~ “.htm$”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 using configuration “.htm$”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http cl:-1 max:1048576  
2010/08/08 11:20:52 [debug] 18647#0: \*1 rewrite phase: 2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 post rewrite phase: 3  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 4  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 5  
2010/08/08 11:20:52 [debug] 18647#0: \*1 generic phase: 6  
2010/08/08 11:20:52 [debug] 18647#0: \*1 access phase: 7  
2010/08/08 11:20:52 [debug] 18647#0: \*1 access phase: 8  
2010/08/08 11:20:52 [debug] 18647#0: \*1 post access phase: 9  
2010/08/08 11:20:52 [debug] 18647#0: \*1 posix\_memalign: 092D0790:4096  
@16  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http init upstream, client  
timer: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SCRIPT\_FILENAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SCRIPT\_FILENAME:  
/srv/www/mutually4u.com/public\_html/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “PATH\_INFO”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “PATH\_INFO:  
/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“QUERY\_STRING”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: "QUERY\_STRING: "  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“REQUEST\_METHOD”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “GET”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REQUEST\_METHOD:  
GET”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“CONTENT\_TYPE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “CONTENT\_TYPE: "  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“CONTENT\_LENGTH”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “CONTENT\_LENGTH:  
"  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SCRIPT\_NAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SCRIPT\_NAME:  
/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REQUEST\_URI”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REQUEST\_URI:  
/test\_htm.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“DOCUMENT\_URI”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “DOCUMENT\_URI:  
/error404.htm”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“DOCUMENT\_ROOT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “DOCUMENT\_ROOT:  
/srv/www/mutually4u.com/public\_html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SERVER\_PROTOCOL”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “HTTP/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_PROTOCOL:  
HTTP/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“GATEWAY\_INTERFACE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “CGI/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“GATEWAY\_INTERFACE: CGI/1.1”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“SERVER\_SOFTWARE”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “nginx/”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “0.8.47”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_SOFTWARE:  
nginx/0.8.47”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REMOTE\_ADDR”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“122.174.127.181”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REMOTE\_ADDR:  
122.174.127.181”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “REMOTE\_PORT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “2300”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REMOTE\_PORT:  
2300”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_ADDR”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“173.230.153.171”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_ADDR:  
173.230.153.171”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_PORT”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var: “80”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_PORT:  
80”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “SERVER\_NAME”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script var:  
“[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “SERVER\_NAME:  
[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy:  
“REDIRECT\_STATUS”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http script copy: “200”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “REDIRECT\_STATUS:  
200”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_HOST:  
[www.mutually4u.com](http://www.mutually4u.com)”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_CONNECTION:  
keep-alive”  
2010/08/08 11:20:52 [debug] 18647#0: _1 fastcgi param:  
“HTTP\_CACHE\_CONTROL: max-age=0”  
2010/08/08 11:20:52 [debug] 18647#0: 1 fastcgi param: "HTTP\_ACCEPT:  
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/_;q=0.5”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param: “HTTP\_USER\_AGENT:  
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.3  
(KHTML, like Gecko) Chrome/6.0.466.0 Safari/534.3”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“HTTP\_ACCEPT\_ENCODING: gzip,deflate,sdch”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 fastcgi param:  
“HTTP\_ACCEPT\_LANGUAGE: en-US,en;q=0.8”  
2010/08/08 11:20:52 [debug] 18647#0: _1 fastcgi param:  
"HTTP\_ACCEPT\_CHARSET: ISO-8859-1,utf-8;q=0.7,_;q=0.3”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http cleanup add: 092D0C48  
2010/08/08 11:20:52 [debug] 18647#0: \*1 get rr peer, try: 1  
2010/08/08 11:20:52 [debug] 18647#0: \*1 socket 11  
2010/08/08 11:20:52 [debug] 18647#0: \*1 epoll add connection: fd:11  
ev:80000005  
2010/08/08 11:20:52 [debug] 18647#0: \*1 connect to 127.0.0.1:9000, fd:11  
#3  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream connect: -2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer add: 11:  
60000:1346458464  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http finalize request: -4,  
“/error404.htm?” a:1, c:3  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http request count:3 blk:0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http finalize request: -4,  
“/error404.htm?” a:1, c:2  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http request count:2 blk:0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream request:  
“/error404.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream send request  
handler  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream send request  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer buf fl:0 s:992  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer in: 092D0CE4  
2010/08/08 11:20:52 [debug] 18647#0: \*1 writev: 992  
2010/08/08 11:20:52 [debug] 18647#0: \*1 chain writer out: 00000000  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer del: 11: 1346458464  
2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer add: 11:  
180000:1346578464  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream request:  
“/error404.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream dummy handler  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream request:  
“/error404.htm?”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream process header  
2010/08/08 11:20:52 [debug] 18647#0: \*1 malloc: 093389B8:131072  
2010/08/08 11:20:52 [debug] 18647#0: \*1 recv: fd:11 200 of 131072  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 06  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: AA  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 06  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record length: 170  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header:  
“X-Powered-By: PHP/5.2.14”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 0  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header:  
“Content-type: text/html”  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi parser: 1  
2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi header done  
2010/08/08 11:20:52 [debug] 18647#0: \*1 HTTP/1.1 404 Not Found  
Server: nginx/0.8.47  
Date: Sun, 08 Aug 2010 05:50:52 GMT  
Content-Type: text/html  
Transfer-Encoding: chunked  
Connection: keep-alive  
X-Powered-By: PHP/5.2.14  
Content-Encoding: gzip

## 2010/08/08 11:20:52 [debug] 18647#0: \*1 write new buf t:1 f:0 092D0EC0, pos 092D0EC0, size: 212 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 http write filter: l:0 f:0 s:212 2010/08/08 11:20:52 [debug] 18647#0: \*1 http cacheable: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream process upstream 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe read upstream: 1 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe preread: 139 2010/08/08 11:20:52 [debug] 18647#0: \*1 readv: 1:130872 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe recv chain: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe buf free s:0 t:1 f:0 093389B8, pos 093389F5, size: 139 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 input buf #0 093389F5 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 03 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 01 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 08 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record byte: 00 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi record length: 8 2010/08/08 11:20:52 [debug] 18647#0: \*1 http fastcgi sent end request 2010/08/08 11:20:52 [debug] 18647#0: \*1 input buf 093389F5 117 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe write downstream: 1 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe write downstream flush in 2010/08/08 11:20:52 [debug] 18647#0: \*1 http output filter “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 http copy filter: “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 http gzip filter 2010/08/08 11:20:52 [debug] 18647#0: \*1 malloc: B7299008:270336 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip alloc: n:1 s:5824 a:8192 p:B7299008 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip alloc: n:32768 s:2 a:65536 p:B729B008 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip alloc: n:32768 s:2 a:65536 p:B72AB008 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip alloc: n:32768 s:2 a:65536 p:B72BB008 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip alloc: n:16384 s:4 a:65536 p:B72CB008 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in: 092D10C0 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in\_buf:092D1044 ni:093389F5 ai:117 2010/08/08 11:20:52 [debug] 18647#0: \*1 malloc: 092D17A8:4096 2010/08/08 11:20:52 [debug] 18647#0: \*1 deflate in: ni:093389F5 no:092D17A8 ai:117 ao:4096 fl:0 redo:0 2010/08/08 11:20:52 [debug] 18647#0: \*1 deflate out: ni:09338A6A no:092D17A8 ai:0 ao:4096 rc:0 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in\_buf:092D1044 pos:093389F5 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in: 00000000 2010/08/08 11:20:52 [debug] 18647#0: \*1 http copy filter: 0 “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 pipe write downstream done 2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer: 11, old: 1346578464, new: 1346578466 2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream exit: 00000000 2010/08/08 11:20:52 [debug] 18647#0: \*1 finalize http upstream request: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 finalize http fastcgi request 2010/08/08 11:20:52 [debug] 18647#0: \*1 free rr peer 1 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 close http upstream connection: 11 2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer del: 11: 1346578464 2010/08/08 11:20:52 [debug] 18647#0: \*1 http upstream temp fd: -1 2010/08/08 11:20:52 [debug] 18647#0: \*1 http output filter “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 http copy filter: “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 http gzip filter 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in: 092D1138 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in\_buf:092D1104 ni:00000000 ai:0 2010/08/08 11:20:52 [debug] 18647#0: \*1 deflate in: ni:00000000 no:092D17A8 ai:0 ao:4096 fl:4 redo:0 2010/08/08 11:20:52 [debug] 18647#0: \*1 deflate out: ni:00000000 no:092D17FE ai:0 ao:4010 rc:1 2010/08/08 11:20:52 [debug] 18647#0: \*1 gzip in\_buf:092D1104 pos:00000000 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: B7299008 2010/08/08 11:20:52 [debug] 18647#0: \*1 http chunk: 10 2010/08/08 11:20:52 [debug] 18647#0: \*1 http chunk: 94 2010/08/08 11:20:52 [debug] 18647#0: \*1 write old buf t:1 f:0 092D0EC0, pos 092D0EC0, size: 212 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 write new buf t:1 f:0 00000000, pos 092D11C8, size: 4 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 write new buf t:0 f:0 00000000, pos 080B6BC4, size: 10 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 write new buf t:1 f:0 092D17A8, pos 092D17A8, size: 94 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 write new buf t:0 f:0 00000000, pos 080AEA9C, size: 7 file: 0, size: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 http write filter: l:1 f:1 s:327 2010/08/08 11:20:52 [debug] 18647#0: \*1 http write filter limit 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 writev: 327 2010/08/08 11:20:52 [debug] 18647#0: \*1 http write filter 00000000 2010/08/08 11:20:52 [debug] 18647#0: \*1 http copy filter: 0 “/error404.htm?” 2010/08/08 11:20:52 [debug] 18647#0: \*1 http finalize request: 0, “/error404.htm?” a:1, c:1 2010/08/08 11:20:52 [debug] 18647#0: \*1 set http keepalive handler 2010/08/08 11:20:52 [debug] 18647#0: \*1 http close request 2010/08/08 11:20:52 [debug] 18647#0: \*1 http log handler 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 092D17A8 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 00000000 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 093389B8 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 093189B0 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 092CF770, unused: 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 092D0790, unused: 1151 2010/08/08 11:20:52 [debug] 18647#0: \*1 event timer add: 3: 65000:1346463466 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 092DF168 2010/08/08 11:20:52 [debug] 18647#0: \*1 free: 092DF400 2010/08/08 11:20:52 [debug] 18647#0: \*1 hc free: 00000000 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 hc busy: 00000000 0 2010/08/08 11:20:52 [debug] 18647#0: \*1 tcp\_nodelay 2010/08/08 11:20:52 [debug] 18647#0: \*1 post event 092FEA08 2010/08/08 11:20:52 [debug] 18647#0: \*1 delete posted event 092FEA08 2010/08/08 11:20:52 [debug] 18647#0: \*1 http keepalive handler 2010/08/08 11:20:52 [debug] 18647#0: \*1 malloc: 092DF168:1024 2010/08/08 11:20:52 [debug] 18647#0: \*1 recv: fd:3 -1 of 1024 2010/08/08 11:20:52 [debug] 18647#0: \*1 recv() not ready (11: Resource temporarily unavailable)

I tried all combinations of error\_page in / out of the location setting  
before and after the  
fast\_cgi options etc.. Even disabling gzip and fastcgi settings but even  
with a plain nginx  
and separate [mutually4u.com](http://mutually4u.com) server config file, i am not able to see the  
redirect error404.htm  
page on the browser. Directly accessing the error404.htm page works  
fine. I am using the  
server version nginx/0.8.47 as seen in the debug output along with php  
5.2.14 with APC and  
memcache enabled. Even after spending more than 8 hours with various  
options I am clueless.  
I also googled a lot of code to find the cause of this problem and also  
searched this forum,  
but could not find the cause of this simple problem.

Any help will be most appreciated. Thank you.

Regards  
Ganesh

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,117436,117436#msg-117436](http://forum.nginx.org/read.php?2,117436,117436#msg-117436)
