Hello,
im trying to make dynamic hosting environment. Just starting with OpenResty, so I would like to ask someone with more skills in this area:
- what is the best handler to change document root? set by lua or rewrite by lua? My config is in redis db and based on hostname send by client I need to dynamically overwrite document root.
- is there any better way to rewrite document root than using variable which is later used to construct value for root config variable?
- there is no openresty port in FreeBSD, just pure nginx with couple of addons (nginx lua is there and can be installed using port mechanism). How can I install open resty core library (basicly, I do not want to install openresty from tarball because there are many patches in nginx in ports)?
thanks
Pete