Hi,

Using ATS 4.1.2 under FreeBSD 10.0 RELEASE amd64 built from ports, I try to 
inspect cache with regex lookup, it seems not work properly on my platform.

1 - Using normal lookup, it gives the information about the cached object
    http://www.mydomain1.fr/o5k?10010001000
2 - Using regex lookup, it gives no results :
    http://www\.mydomain1\.fr/o5k?1001000100.*
Just this :
"Regex Lookup
Done"
3 - Using regex lookup with origin server IP, it seems to work giving the 
expected results but each link given as results drives me to a failed lookup 
because the object cached is based on host and not IP :
"http://10.10.16.3/o5k?10010000001
Cache Lookup Failed, or missing in cluster"

QUESTION :
----------
Does this mean it is not a good idea to map a domain to a IP and then I must 
use domain.tld instead of IP 
OR is it simply a cache regex lookup side effect ?

Best regards,
Denis

------------------------------------------------------------------

Configuration :
==> remap.config <==
regex_map www\.mydomain1\.(fr|com|eu|org) http://10.10.16.3/
map http://10.10.16.28:8080/cache/ http://{cache}:8080 @action=allow 
@src_ip=10.10.16.0-10.10.16.255

==> records.config <==
CONFIG proxy.config.http_ui_enabled INT 3


Outputs of regex lookup using domain.tld and IP address:
==> traffic.out <==

[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) query 
params: 'url=http%3A%2F%2Fwww.mydomain1.fr%2Fo5k.*' len 33 [unescaped]
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) query 
params: 'url=http://www.mydomain1.fr/o5k.*' len 33 [escaped]
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) there were 
1 url(s) passed in
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) URL 1: 
'http%3A%2F%2Fwww.mydomain1.fr%2Fo5k.*'
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_inspector) URL 1: 
'http://www.mydomain1.fr/o5k.*'
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_scan_truss) inside scan
[Jun  3 12:24:39.860] Server {0x804008000} DEBUG: (cache_new) new 0x805435180
[Jun  3 12:24:40.882] Server {0x804006400} DEBUG: (cache_scan_truss) inside 
0x805435180:scanVol
[Jun  3 12:24:41.904] Server {0x804007000} DEBUG: (cache_scan_truss) inside 
0x805435180:scanObject
[Jun  3 12:24:41.911] Server {0x804007000} DEBUG: (cache_scan_truss) read 
0x805435180:scanObject
[Jun  3 12:24:41.911] Server {0x804007000} DEBUG: (cache_scan_truss) read 
0x805435180:scanObject 53476864 8388608
[Jun  3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) inside 
0x805435180:scanObject
[Jun  3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) blockskip 
0x805435180:scanObject
[Jun  3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) next 
0x805435180:scanObject 61865984
[Jun  3 12:24:41.949] Server {0x804007800} DEBUG: (cache_scan_truss) 
next_in_map 0x805435180:scanObject 10737418240
[Jun  3 12:24:42.970] Server {0x804007c00} DEBUG: (cache_scan_truss) inside 
0x805435180:scanVol
[Jun  3 12:24:42.970] Server {0x804007c00} DEBUG: (cache_inspector) scan done
[Jun  3 12:24:42.971] Server {0x804007c00} DEBUG: (cache_free) free 0x805435180



[Jun  3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) query 
params: 'url=http%3A%2F%2F10.10.16.3%2Fo5k%3F.*' len 28 [unescaped]
[Jun  3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) query 
params: 'url=http://10.10.16.3/o5k?.*' len 28 [escaped]
[Jun  3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) there were 
1 url(s) passed in
[Jun  3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) URL 1: 
'http%3A%2F%2F10.10.16.3%2Fo5k%3F.*'
[Jun  3 12:01:34.714] Server {0x804007c00} DEBUG: (cache_inspector) URL 1: 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:34.715] Server {0x804007c00} DEBUG: (cache_scan_truss) inside scan
[Jun  3 12:01:34.715] Server {0x804007c00} DEBUG: (cache_new) new 0x806368a40
[Jun  3 12:01:35.736] Server {0x804008000} DEBUG: (cache_scan_truss) inside 
0x806368a40:scanVol
[Jun  3 12:01:36.758] Server {0x804006400} DEBUG: (cache_scan_truss) inside 
0x806368a40:scanObject
[Jun  3 12:01:36.765] Server {0x804006400} DEBUG: (cache_scan_truss) read 
0x806368a40:scanObject
[Jun  3 12:01:36.765] Server {0x804006400} DEBUG: (cache_scan_truss) read 
0x806368a40:scanObject 61865472 8388608
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan_truss) inside 
0x806368a40:scanObject
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000000' with regex 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000001' with regex 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.802] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000002' with regex 
'http://10.10.16.3/o5k?.*'
<snip>...
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000018' with regex 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000019' with regex 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan) hostname = 
'10.10.16.3', hostlen = 10
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_inspector) matching 
url 'GET' 'http://10.10.16.3/o5k?10010000020' with regex 
'http://10.10.16.3/o5k?.*'
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
[Jun  3 12:01:36.803] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
<snip>...
[Jun  3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) blockskip 
0x806368a40:scanObject
[Jun  3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) next 
0x806368a40:scanObject 70254080
[Jun  3 12:01:36.805] Server {0x804007000} DEBUG: (cache_scan_truss) 
next_in_map 0x806368a40:scanObject 10737418240
[Jun  3 12:01:37.825] Server {0x804007400} DEBUG: (cache_scan_truss) inside 
0x806368a40:scanVol
[Jun  3 12:01:37.825] Server {0x804007400} DEBUG: (cache_inspector) scan done
[Jun  3 12:01:37.825] Server {0x804007400} DEBUG: (cache_free) free 0x806368a40

Reply via email to