How to add an arg to the requests to the upstreams

Hey, I wanna add a custom arg to the upstreams by proxy_pass like this:

upstream servers {
server1:8011;
server2:8012;
}


server {
listen on 8443;
ssl on;
server_name server0;
location / {
proxy_pass https://servers;
}
}

My expectation: type “https://server0:8443” and the upstream will get
https://server1:8011?abc=1

So how can I make this? Thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,200661,200661#msg-200661

On Wed, May 25, 2011 at 05:48:26AM -0400, speedfirst wrote:

ssl on;
So how can I make this? Thanks.
proxy_pass https://servers$uri?abc=1;


Igor S.

Is direct pass OK, like this?

proxy_pass https://servers?abc=1

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,200661,200666#msg-200666

On Wed, May 25, 2011 at 06:12:03AM -0400, speedfirst wrote:

Is direct pass OK, like this?

proxy_pass https://servers?abc=1

No.


Igor S.

sorry, ignore the last pst.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,200661,200924#msg-200924

So how to do that? Thanks.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,200661,200920#msg-200920

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs