How handle high number of redirects urls
Tobias Eichelbrönner
tobias.eichelbroenner at lamp-solutions.de
Thu Jul 3 20:35:01 CEST 2014
Hi,
> if (req.url == "/foo/bar") {
> set req.url = "/newfoo/barnew";
> } else if (req.url == "snafu") {
> set req.url = "/fusnanew") {
> } ...
https://www.varnish-cache.org/vmod/database-driven-rewrites
Is marked as under develop. I havn´t tested it.
You can use
https://github.com/brandonwamboldt/libvmod-redis
Then you could store the rules in redis in modify the rule above as
set req.url = redis.call("GET " + req.url);
or something similar.
Sincerely,
--
LAMP solutions GmbH
Gostenhofer Hauptstrasse 35
90443 Nuernberg
Amtsgericht Nuernberg: HRB 22366
Geschaeftsfuehrer: Heiko Schubert
Es gelten unsere allgemeinen Geschaeftsbedingungen.
http://www.lamp-solutions.de/agbs/
Telefon : 0911 / 376 516 0
Fax : 0911 / 376 516 11
E-Mail : support at lamp-solutions.de
Web : www.lamp-solutions.de
Facebook : http://www.facebook.com/LAMPsolutions
Twitter : http://twitter.com/#!/lampsolutions
More information about the varnish-misc
mailing list