Module : showing content of the folder

I’m trying to develop a small module for nginx that verify the url. If
not valid, I return NGX_HTTP_FORBIDDEN in the handler and that works
But if url is correct i want to send the content of the location to the
client. I tested to return different values, but it doesn’t work (The
is activated in the same folder as the content I want to show, so I
use ngx_http_internal_redirect)

What I want to know, is if I need to configure the header / output
myself or
if i have to set a variable in ngx_http_request_t to 0?

Thanks for your help,

Posted at Nginx Forum:,258587,258587#msg-258587

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs