
Raul.Rangel at disney
May 23, 2013, 6:57 AM
Post #4 of 6
(169 views)
Permalink
|
|
RE: Varnish as a redirector for a millions URLs
[In reply to]
|
|
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: varnish-dev-bounces [at] varnish-cache [mailto:varnish-dev-bounces [at] varnish-cache] On Behalf Of Aleem B Sent: Thursday, May 23, 2013 7:41 AM To: Poul-Henning Kamp Cc: varnish-dev [at] varnish-cache 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 <phk [at] phk<mailto:phk [at] phk>> wrote: In message <CA+=Uhp_pepXsb6Q_ORQpYe+AhWSh_yytRNjKBzBBA_FxwJb28Q [at] mail<mailto:Uhp_pepXsb6Q_ORQpYe%2BAhWSh_yytRNjKBzBBA_FxwJb28Q [at] mail>> >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 phk [at] FreeBSD<mailto:phk [at] FreeBSD> | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
|