This question may sound strange or be improperly phrased. I have a nginx web server X
that has to request some data from other servers Z
. It is possible to have a proxy P
that I control, such that X
accesses Z
through P
.
X --> P --> Z
Question: Is it possible to have another proxy Q
between P
and Z
, giving:
X --> P --> Q --> Z
where the proxy Q
that is chosen depends on a parameter (say id
) that web server X
knows of? Maybe the paramter id
can be passed from X
to P
in the headers, and if that is possible, P
can use id
to query a MySQL database to retrieve the correct proxy details Q
and use that as the proxy for this particular connection? If this is possible and ideal, how should this be setup?
Also in this case, are P
and Q
considered forward proxies or reverse proxies?