Welcome! Log In Create A New Profile

Advanced

Re: writing an alias to a proxy with no buffering

Francis Daly
February 29, 2012 02:28PM
On Wed, Feb 29, 2012 at 12:13:14PM +0100, Cristiano Belloni wrote:
> On 02/28/2012 07:29 PM, Francis Daly wrote:

Hi there,

> It works, thank you. Can I ask how to translate location /stream0 to
> /stream?s=0

If you mean "the client asks nginx for /stream0 and nginx asks the
proxy_pass host for /stream?s=0", then

location = /stream0 {
proxy_buffering off;
proxy_pass http://unix:/tmp/demo_socket:/stream?s=0;
}

should work. (But you may see odd things if the client asks for
/stream0?query=string.)

I suspect that you will be better served by advertising the urls that
the proxy_pass host recognises, if that is possible.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

writing an alias to a proxy with no buffering

cristiano.belloni February 28, 2012 12:30PM

Re: writing an alias to a proxy with no buffering

Francis Daly February 28, 2012 01:30PM

Re: writing an alias to a proxy with no buffering

cristiano.belloni February 29, 2012 06:14AM

Re: writing an alias to a proxy with no buffering

Francis Daly February 29, 2012 02:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready