From bdb048c1bd1d7a104a4694ecfc6209919ac98ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Tue, 24 Jan 2017 11:54:03 +0100 Subject: [PATCH] Drop args in /streaming (refs #18553). --- 6.Nginx/vhost_mediaserver-msuser.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/6.Nginx/vhost_mediaserver-msuser.conf b/6.Nginx/vhost_mediaserver-msuser.conf index a24a46f6..7ab18bf3 100644 --- a/6.Nginx/vhost_mediaserver-msuser.conf +++ b/6.Nginx/vhost_mediaserver-msuser.conf @@ -56,7 +56,7 @@ server { } location /streaming/ { location ~ \.m3u8$ { - rewrite ^/streaming/(.*)$ /live/$1 break; + rewrite ^/streaming/(.*)$ /live/$1? break; proxy_pass http://localhost:1935; add_header Access-Control-Allow-Origin "*"; add_header X-Cache $upstream_cache_status; @@ -69,7 +69,7 @@ server { proxy_cache_valid 200 1s; } location ~ \.ts$ { - rewrite ^/streaming/(.*)$ /live/$1 break; + rewrite ^/streaming/(.*)$ /live/$1? break; proxy_pass http://localhost:1935; add_header Access-Control-Allow-Origin "*"; add_header X-Cache $upstream_cache_status; @@ -81,7 +81,7 @@ server { proxy_cache_valid 200 10s; } # only urls to ts and m3u8 files are allowed, discard any requested path for other urls - rewrite ^/streaming/(.*)$ /live/ break; + rewrite ^/streaming/(.*)$ /live/? break; proxy_pass http://localhost:1935/live/; } location / { -- GitLab