Parsing non-English URLs
Angie T. Muhammad
angie.tawfik at gmail.com
Tue Jun 1 11:45:37 CEST 2010
Thank you Tollef. I create the log using:
# varnishlog -a -w /var/log/varnish/varnish.log &
And now I read it using:
# varnishlog -r /var/log/varnish/varnish.log
I get some lines like:
14 TxHeader b Referer:
http://myserver.example.com/news/%D8%A7%D9%84%D9%85%D9%84%D9%8A%D8%A7%D8%B1%D8%AF%D9%8A%D8%B1-%D8%A7%D9%84%D9%85%D8%B5%D8%B1%D9%8A-%C2%AB%D9%85%D8%AD%D9%85%D8%AF-%D8%A7%D9%84%D9%81%D8%A7%D9%8A%D8%AF%C2%BB-%D9%8A%D9%82%D8%B1%D8%B1-%D8%A8%D9%8A%D
The point is that I need to make varnish accept such percentages or any
other syntax in VCL file. So that some pages are cached longer based on
their Arabic address (Like the one in the referer above).
Any ideas?
Thank you in advance :)
On Mon, May 31, 2010 at 9:13 AM, Tollef Fog Heen <
tfheen at varnish-software.com> wrote:
> ]] "Angie T. Muhammad"
>
> | I tried opening the log file with less, vim, and tail but all what am
> | getting is either binary (less) or stuff like above (tail).
>
> Use varnishlog(1) to read the varnishlog.
>
> tail and less won't do the right thing as the log file is a circular
> buffer and they have no idea where varnish is currently writing.
>
> --
> Tollef Fog Heen
> Varnish Software
> t: +47 21 54 41 73
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
>
--
All the best,
Angie T. Muhammad
Linux Systems Engineer
Al Masry Al Youm
http://www.almasryalyoum.com/en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.varnish-cache.org/pipermail/varnish-misc/attachments/20100601/02ace308/attachment.html>
More information about the varnish-misc
mailing list