<div dir="ltr">Hello Varnish team<br><br>I have varnish v. 2.1.2 on production and test servers . We are running a bilingual news website. <br>On my test server I am trying to parse non-English URLs like follows:<br><br>.......................<br>
else if (req.url == "/<b style="color: rgb(255, 0, 0);">تقارير</b>") {<br> set beresp.http.X-Cacheable = "Yes";<br> set beresp.ttl = 60m;<br> return(deliver);<br> }<br> .......................<br clear="all">
<br>The word in <b style="color: rgb(255, 0, 0);">bold red</b> is in Arabic and it is a right-to-left language. The link can not be made in English and has no English equivalent. In case you are wondering, the word means "reports". My sole problem now is that varnish applies all other if-statements with full English URLs but not this one with Arabiv. Even if I try regex say: <i><b>req.url ~ "^/تقارير"</b> </i>instead of the == sign, it starts with no errors but does not apply the rule.<br>
<br>I tried the following:<br>1- Reversing the letters of the arabic word, so تقارير would be ريراقت but it did not work<br>2- Copying the link directly into /etc/varnish/default.vcl, it produces something like: %D9%88%D8%B3%D9%88%D9%85%D8%A7%D8%AA <br>
Such html address handling prevents varnish from starting <br><br>Any ideas? Your help is really appreciated. <br><br><br>-- <br>All the best,<br>Angie<br>
</div>