Cryillic letters in rewrite?
Cato Aune
cato.aune at aunenett.st.no
Sun Jun 12 00:24:08 CEST 2011
Hi,
is it possible to rewrite a request for http://company.ru/ to
http://company.ru/company-Россия ?
When I try the following in default.vcl
set req.url = "/company-Россия";
I get an error message when trying to access http://company.ru
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,
"/company-\37777777720\37777777640\37777777720\37777777676\37777777721
\37777777601\37777777721\37777777601\37777777720\37777777670\37777777721
\37777777617"), vrt_magic_string_end);
It seems that
/company-%D0%A0%D0%BE%D1%81%D1%81%D0%B8%D1%8F
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%
D1%8F";
----------------------------------------###-----------------------------------
Running VCC-compiler failed, exit 1
VCL compilation failed
Any suggestions on how to make this work?
Regards,
Cato
More information about the varnish-misc
mailing list