Welcome! Log In Create A New Profile

Advanced

How to grab a value from a request

October 02, 2017 06:23PM
I'm setting up nginx as a proxy router for various APIs. How can I take a specific value form the incoming request and dynamically populate it into the upstream?

Request: https://api.domain.com/[resource]/v2/
Upstream: https://app.domain.com/api/[resource]/v2/

I this case, I want to take [resource] from the request and populate it into the corresponding [resource] of the upstream path.

Thanks
Subject Author Posted

How to grab a value from a request

halfpastjohn October 02, 2017 06:23PM

Re: How to grab a value from a request

Francis Daly October 02, 2017 07:44PM

Re: How to grab a value from a request

halfpastjohn October 03, 2017 11:29AM

Re: How to grab a value from a request

Reinis Rozitis October 03, 2017 12:12PM

Re: How to grab a value from a request

halfpastjohn October 03, 2017 01:41PM

Re: How to grab a value from a request

Reinis Rozitis October 04, 2017 11:52AM

Re: How to grab a value from a request

Francis Daly October 04, 2017 03:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready