I’d like to keep all the above logic, but ALSO set up another proxy_pass
from this location block to say bar.mydomain.com. What is the best way
to do
this?
I’d like to keep all the above logic, but ALSO set up another proxy_pass
from this location block to say bar.mydomain.com. What is the best way to do
this?
When you say " but ALSO set up another proxy_pass from this location
block
to say bar.mydomain.com"
Do you mean the request should go to both? i.e foo.mydomian and
bar.mydomain. If thats the case than upstream will not work because it
will
actually load balance the requests between 2 servers.
Infact I am also looking for a solution wherein I need proxy_pass to
send
request to the destined server but ALSO send it to another server also
(in
async manner).
I tried using echo module with echo_subrequest_async but it did not
worked.
So I am not sure whats the best way to do that in Nginx