Upstream module development
Ajith C
ajithc1861 at gmail.com
Fri Apr 13 16:15:39 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20180413/ad7a10de/attachment.html>
More information about the nginx-devel
mailing list