Cryillic letters in rewrite?

Cato Aune cato.aune at
Sun Jun 12 00:24:08 CEST 2011


is it possible to rewrite a request for toРоссия ?

When I try the following in default.vcl
set req.url = "/company-Россия";

I get an error message when trying to access
The requested
URL /company-ÿ77777720ÿ77777640ÿ77777720ÿ77777676ÿ77777721ÿ77777601ÿ77777721ÿ77777601ÿ77777720ÿ77777670ÿ77777721ÿ77777617 was not found on this server.

varnishlog shows
14 TxURL
b /company-�77777720�77777640�77777720�77777676�77777721�77777601�77777721�77777601�77777720�77777670�77777721�77777617

varnishd -C shows this
  VRT_l_req_url(sp, VRT_regsub(sp, 0, VRT_r_req_url(sp), VGC_re_1,
\37777777617"), vrt_magic_string_end);

It seems that
works in the browser, but if I try to use that encondig in the .vcl
file, I get
Message from VCC-compiler:
Control character in %xx escape
(input Line 24 Pos 41)
                set req.url = "/company-%D0%A0%D0%BE%D1%81%D1%81%D0%B8%
Running VCC-compiler failed, exit 1
VCL compilation failed

Any suggestions on how to make this work?



More information about the varnish-misc mailing list