Upper and lower case strings in Varnish

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Feb 3 16:59:57 CET 2010

In message <4B69AB1A.6010406 at mangahigh.com>, Richard Chiswell writes:
>Hi all,
>I've got a simple question which I've been puzzling on for the last 30 
>minutes or so - how do you change a string in Varnish to lowercase?
>Basically, all the links on our site should be lowercase, but some 
>people have been randomly capitalising them when linking to them - I'd 
>just like Varnish to issue a 301 redirect to the lowercased version of 
>the URL: everything is in place apart from converting the string to 

You'll have to use a bit of inline C code to do that.


Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-misc mailing list