Stub_status and other data to be displayed

Hello all,

I made a debug html that displays some debugging information (additional
nginx variables)… but Id also prefer to print along with the output
produced by stub_status . Is there anyway to do this?

Something like this doesnt appear to work:

location /static-test {
default_type text/html;
stub_status on;
return 200 “test”
}

it either prints my test, or if I comment it … it prints the status of
nginx.

Regards,
Sam

Hello!

On Apr 23, 2012, at 1:22 , Sam Ashmann wrote:

                return 200 "test"
                }

it either prints my test, or if I comment it … it prints the status of nginx.

You can use SSI for this.

The following commit allows usage of stub_status content handler
from “#include virtual=…” SSI directive:

http://trac.nginx.org/nginx/changeset/4612/nginx

Best regards,
Andrey