Welcome! Log In Create A New Profile

Advanced

Module : showing content of the folder

May 03, 2015 02:12PM
Hello,
I'm trying to develop a small module for nginx that verify the url. If it's not valid, I return NGX_HTTP_FORBIDDEN in the handler and that works fine.
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 module is activated in the same folder as the content I want to show, so I can't 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,
Goldfluss
Subject Author Posted

Module : showing content of the folder

goldfluss May 03, 2015 02:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
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