# Stub\_status and other data to be displayed

**URL:** <https://www.ruby-forum.com/t/stub-status-and-other-data-to-be-displayed/219176>\
**Category:** NGINX\
**Created:** [April 22, 2012, 11:22pm UTC](https://www.ruby-forum.com/t/stub-status-and-other-data-to-be-displayed/219176 "2012-04-22T23:22:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 22, 2012, 11:22pm UTC](https://www.ruby-forum.com/t/stub-status-and-other-data-to-be-displayed/219176/1 "2012-04-22T23:22:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sam\_Ashmann](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9d8465/32.png) [@Sam\_Ashmann](https://www.ruby-forum.com/u/Sam_Ashmann)\
**Post date:** [April 26, 2012, 3:16pm UTC](https://www.ruby-forum.com/t/stub-status-and-other-data-to-be-displayed/219176/2 "2012-04-26T15:16:42Z")

</div>

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](http://trac.nginx.org/nginx/changeset/4612/nginx)

Best regards,  
Andrey
