diff options
Diffstat (limited to 'tests/rewrite01.at')
-rw-r--r-- | tests/rewrite01.at | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rewrite01.at b/tests/rewrite01.at index 14232f3..d004b4c 100644 --- a/tests/rewrite01.at +++ b/tests/rewrite01.at @@ -1,3 +1,3 @@ # This file is part of vmod-dbrw -*- autotest -*- -# Copyright (C) 2013-2014 Sergey Poznyakoff +# Copyright (C) 2013-2018 Sergey Poznyakoff # @@ -25,3 +25,4 @@ AT_VCL([SELECT dest,pattern,value FROM rewrite - WHERE host='$host' AND '$url' LIKE url], + WHERE host='$host' AND url IN ($(urlprefixes $url)) + ORDER BY LENGTH(dest),value DESC], [txreq -url /local -hdr "Host:en.example.net" |