You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Vasanth Mathivanan <va...@evolutiondigital.com> on 2019/05/30 06:18:15 UTC
Need exact Regex Syntax for port checking
Hi All ,
In trafficserver , We have tried to match the exact port for redirect the request to parent origin servers instead of remap origin . Below highlighted are without specify the port is working and with specify port is not working in parent config . As per online regex tool the syntax has been fine there ,but not working in parent config . Is that possible to verify the syntax on regex debug or suggest.
How to find the exact port match use for parent config .
My analysis , When while specify the port of the request the logs are DIRECT then same time I have changed without port in url_regex came PARENT HIT on logs and the syntax are fine.
Without port specify
url_regex=^http://.*/EvoLive/(.*\.m3u8[?]) parent="y.y.y.y:80; w.w.w.w:80" parent_is_proxy=false parent_retry=simple_retry
With Port specify
url_regex=^http://.*(:[8002]+)/EvoLive/(.*\.m3u8[?]) parent="y.y.y.y:80; w.w.w.w:80" parent_is_proxy=false parent_retry=simple_retry
remap.config
map http://z.z.z.z:8002 http://x.x.x.x @plugin=collapsed_forwarding.so @plugin=cache_range_requests.so
Thanks
__Vasanth