Multiple proxy_pass destinations from a single location block
nginx-forum at nginx.us
Fri Mar 13 10:16:59 UTC 2015
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
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
check this http://forum.nginx.org/read.php?2,257211,257211
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256437,257238#msg-257238
More information about the nginx