Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: smarter permanent redirects

$
0
0
Such amount of redirects can be best done with 'map', if you want dynamic redirects then you need Lua, a table read from sql into memory and an optimized Lua routine which does the rewrite (so not map).

Map is static until nginx is reloaded, with Lua you can read sql data, store in ram and periodically re-read sql for a refresh.
https://groups.google.com/forum/#!forum/openresty-en

But all in all not a job to be done in 5 min...

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>