David , Tried now that also same problem it had redirect to all requests .
Thanks __Vasanth Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: David Carlin<mailto:[email protected]> Sent: Tuesday, May 14, 2019 5:16 PM To: [email protected]<mailto:[email protected]> Subject: Re: Need allow only query string in hdr_rewrite/regex_remap Vasanth, I think if you want to check for the existence of a query parameter, you may need to do cond %{CLIENT-URL:QUERY} ="" - See this example for checking presence of header: https://docs.trafficserver.apache.org/en/latest/admin-guide/plugins/header_rewrite.en.html#check-for-existence-of-a-header I know the syntax seems unusual, years ago I was trying something like cond %{HEADER:User-Agent} and after a developer looked in plugin source, they said this rule would actually just check if User-Agent is NULL - not check if it exists. David On Tue, May 14, 2019 at 7:37 AM Vasanth Mathivanan <[email protected]<mailto:[email protected]>> wrote: Hi All , Actually we are using to get m3u8 and mpd based on Live streaming via ATS. Now we need to implement DAI for IP TV solutions. We tried a lot , our requirements are contains any query string on mpd/m3u8 will redirect to another server, without query string go to the remap origin directly. And one more thing first m3u8 only had query string not next to the file, it should be go directly which is the remap origin but only first m3u8 wants to be redirect . In maps.reg contains , ^/DAI/(.*)?id=* http://secondary.origin:port/DAI/$1 @status=302 It has been enabled plugin in remap config. We have to tried another method, cond %{CLIENT-URL:QUERY} [AND] cond %{STATUS} >199 [AND] cond %{STATUS} <500 set-redirect 302 http://secodary.origin/DAI/MIS22/STB.m3u8 [QSA] But above header rewrite function has problem , each request will be redirected . Client URL like this : http:// secodary.origin :port/DAI/MIS22/STB.m3u8?id=7965a61adfc2ec62dead23a037e451e13a50c -wants to be redirect . http:// secodary.origin :port/DAI/MIS22/video.m3u8 – normal request go to remap origin. Please anyone give the solution for me. Thanks __Vasanth Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
