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