reverse proxying video streaming
Hari Hendaryanto
hari.h at csmcom.com
Wed Apr 13 16:15:07 MSD 2011
On 4/13/2011 6:43 PM, Maxim Dounin wrote:
>
> Most likely you have some regexp location in your config which
> matches *.flv.
>
> If you need exact match - most obvious solution is to use exact
> match location instead, i.e.
>
> location = /stream/content.flv {
> ...
> }
>
whoaa, you're so great. it worked.
thanks alot maxim :)
> Exact match locations are considered most specific and prevent
> testing of regexp locations. The same for normal static locations
> may be achieved via "^~" (no regexp) modifier.
>
> Alternative aproach is to properly isolate regexp locations by
> nesting them into appropriate normal locations, i.e. do something
> like
>
> location / {
> ...
>
> location ~ \.flv$ {
> ...
> }
> }
>
> location /stream/ {
> ...
> }
>
> This is actually recommended, but not exactly required in your
> case as it looks like you need exact match anyway.
>
> Maxim Dounin
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
Powered By http://www.3g-net.net
More information about the nginx
mailing list