Welcome! Log In Create A New Profile

Advanced

Upstream module development

Ajith C
April 13, 2018 12:18PM
Hi,

Now I am writing a Nginx module to communicate with an upstream server (LDAP) . I had coded both the create_request and process_header callback functions. But the problem is, I don’t want to talk with the upstream for for all the requests but only for the requests with some special parameters. For example: if a request arrives like http://www.example.com/connect?value=yes , then I want to talk to the upstream to generate the response for the client But if URI is http://www.example.com/connect?value=no , then I don’t want to connect to upstream and I need to create my own response to send back to client. What should I do? Please help.

Thank you_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Upstream module development

Ajith C 341 April 13, 2018 12:18PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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