request time

Marcos Neves marcos.neves at gmail.com
Mon Jul 14 00:38:07 MSD 2008


Is it possible to add a header to the client, that says how long the request
takes?
Examplo, I have nginx proxyng to php using the default:

location ~ .php$ {
  fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  include fastcgi_params;
}

after the proxy complete, I would like to add a header called
PHP-Request-Time with the execution duration in milliseconds, like this:
PHP-Request-Time 230ms

How? Is that a good idea? I took that from Pushion Passenger (mod_rails to
Apache 2)

-- 
Marcos Neves
+55 44 3263-8132
+55 44 9918-8488
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080713/7e853d03/attachment.html>


More information about the nginx mailing list