Hello!
On Sat, Sep 28, 2013 at 2:27 PM, Srini Kommoori wrote:
>
> I tried alias, setting root in lua and lot of other things - nothing seem to
> work. I always get 403. How do I solve this?
>
Your way of using $host in the "root" path should work.
Your 403 error indicates you're having a file permission issue here,
which is unrelated.
Please ensure that the system user running your nginx *worker* process
has enough permission to access your files under
/root/openresty/work/xyz.domainA.com/ and etc. The system account
running your nginx worker processes should have "x" permission on all
the directories in the file paths and "r" permission on the file it is
accessing.
You can try more permissive locations like /tmp/ first :)
Best regards,
-agentzh