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

Re: Server redirect without rewrite rules in Nginx config

$
0
0
nginx doesn't have dynamic config files other then reload them all, so you would have to resort to Lua for most parts (some can be done with nginx itself).
https://github.com/rstudio/redx is a good place to start
and https://github.com/mindreframer/nginx-lua-stuff for many examples

Store your user configuration items in a database and cache them when read, then use Lua to do the processing.

You can do it all with plain nginx and reloading nginx all the time but that obviously has its drawbacks.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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