Welcome! Log In Create A New Profile

Advanced

Re: writing an alias to a proxy with no buffering

Francis Daly
February 28, 2012 01:30PM
On Tue, Feb 28, 2012 at 06:27:58PM +0100, Cristiano Belloni wrote:

Hi there,

> I have a location in my nginx configuration file that connects to a unix
> domain proxy to stream a real time video. What I would like is to make
> other locations point to the stream. It seems that the right option for
> this is the alias directive.

"alias" is for static files rather than for proxying.

> location /stream {
> proxy_buffering off;
> proxy_pass http://unix:/tmp/demo_socket:/;
> }
>
> location /mjpeg {
> alias /stream;
> }

Does

location /mjpeg {
proxy_buffering off;
proxy_pass http://unix:/tmp/demo_socket:/;
}

do what you want?

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: 202
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