Welcome! Log In Create A New Profile

Advanced

Re: stub_status and other data to be displayed.

Andrey Belov
April 26, 2012 09:18AM
Hello!

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

> 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.

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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

stub_status and other data to be displayed.

Sam Ashmann April 22, 2012 05:24PM

Re: stub_status and other data to be displayed.

Andrey Belov April 26, 2012 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready