Best way to handle large number of frequently updated redirects
nginx-forum at forum.nginx.org
Mon Aug 1 22:29:53 UTC 2022
Hi, I'm looking for advice on the best way to handle a fairly large and
frequently updated list of redirects.
Basically, I have a CSV file with source, target, and redirect type. There
are several hundred entries, with updates made about weekly. We expect this
list to grow quickly into the thousands once we have a process in place.
>From my research, it feels like a redirect map using
(http://nginx.org/en/docs/http/ngx_http_map_module.html) might be the best
option. So would the preferred approach be to write a script to process the
CSV file into an include that works with map, sync the map file to the
server and reload periodically to pick up on the updated config?
Any advice would be appreciated.
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,294889,294889#msg-294889
More information about the nginx