I have 2 RoR web applications hosted on 2 different servers. For one particular page, the request is served from the second application. For rest of the pages, the request i
If proxied server cannot write to /var/lib/nginx, yo do not need to play with file permissions or ownership of that directory. You can change the cache directory of nginx for the context by;
proxy_temp_path /home/emre/projects/frontend/nginx_temp 1 2;
inside http, server or location contexts of nginx.conf file.
check http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_temp_path