mutliple upstream-servers for different locations #9

Open
Finkregh opened this Issue Aug 22, 2011 · 4 comments

Projects

None yet

2 participants

@Finkregh

I'd like to be able to host several node-instances (e.g. foo at port 8000 and bar at port 9000) and proxy them into a 'location {}' as if they'd be a normal 'upstream {}':

#improper example ;-)

upstream foo { tcp { [...] server localhost:8000; } }
upstream bar { tcp { [...] server localhost:9000; } }
location /foo { index @foo; }
location /bar { index @bar; }

As far as i understood the readme this is not possible at the moment.

@yaoweibin
Owner

On 2011-8-22 20:12, Finkregh wrote:

I'd like to be able to host several node-instances (e.g. foo at port 8000 and bar at port 9000) and proxy them into a 'location {}' as if they'd be a normal 'upstream {}':

#improper example ;-)

upstream foo { tcp { [...] server localhost:8000; } }
upstream bar { tcp { [...] server localhost:9000; } }
location /foo { index @foo; }
location /bar { index @bar; }

As far as i understood the readme this is not possible at the moment.
Sorry, I don't quite catch your meaning. Can you explain more clearly?

My module is for general tcp packet. It's not HTTP protocol. How do know
the location?

Weibin Yao

@Finkregh

well, i thought it could be possible to implement something as node-http-proxy with nginx :)

@yaoweibin
Owner

On 2011-8-23 15:23, Finkregh wrote:

well, i thought it could be possible to implement something as [node-http-proxy] 1 with nginx :)

Well. I will put your request on my design roadmap. It's difficult to do
this job.

Weibin Yao

@Finkregh

thanks so far :)
would be an awesome addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment