request time

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

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

location ~ .php$ {
  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: <>

More information about the nginx mailing list