Hello!
On Wed, Mar 5, 2014 at 1:39 PM, Aapo Talvensaari wrote:
> Let's say I have multiple sites on single OpenResty server. Can I have say
> different package.path, and package.cpath for each server block in nginx
> config, or even location block?
As long as you don't want separate output filters (like
header_filter_by_lua), then you can use multiple http {} blocks each
with its own virtual server defined by server {}. That way, each http
{} has its own standalone Lua VM instance.
NGINX's output filters are always global, alas.
> This same question extends to Lua too.
You need separate Lua VMs (note, not just separate Lua threads).
Best regards,
-agentzh