Can you make a backend that takes a url, looks it up in the database and 
returns a 301? You could then cache the 301 in varnish. Thought tht will only 
work for GETs. Once you get into POST requests it's another story.

Raul

From: [email protected] 
[mailto:[email protected]] On Behalf Of Aleem B
Sent: Thursday, May 23, 2013 7:41 AM
To: Poul-Henning Kamp
Cc: [email protected]
Subject: Re: Varnish as a redirector for a millions URLs

It's based on a DB lookup. Currently I am using NGINX + Redis and there are 
about a million URLs.

Aleem

On Thu, May 23, 2013 at 6:37 PM, Poul-Henning Kamp 
<[email protected]<mailto:[email protected]>> wrote:
In message 
<CA+=uhp_pepxsb6q_orqpye+ahwsh_yytrnjkbzbba_fxwjb...@mail.gmail.com<mailto:uhp_pepxsb6q_orqpye%[email protected]>>

>I currently use nginx + redis + lua module to setup redirects for close to
>a million old URLs that have been ported to a new platform.
Are the redirects based on rules ?

Ie, something like:

        /article?ID=#####  -> /#####

or is it a database lookup to figure out the mapping ?



--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]<mailto:[email protected]>         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to