<div dir="ltr">i've installed nginx from the slackbuild and i have it run as a proxy for tomcat with a config something like this...<div><br></div><div>sever {</div><div>  server_name <a href="http://example.com">example.com</a>;</div><div>  location / {</div><div><div>    proxy_pass <a href="http://localhost:8080">http://localhost:8080</a>;</div><div>    proxy_set_header X-Real-IP $remote_addr;</div><div>    proxy_set_header X-Forwarded-For $remote_addr;</div><div>    proxy_set_header Host $host;</div></div><div>  }</div><div>}</div><div><br></div><div>when it tries to load some files, it fails with the following error:</div><div><br></div><div><div>2015/05/05 14:59:31 [crit] 25274#0: *5 open() "/var/lib/nginx/proxy/3/00/0000000003" failed (13: Permission denied) while reading upstream, client: 192.168.1.2, server: <a href="http://example.com">example.com</a>, request: "GET /foo-file.css HTTP/1.1", upstream: "<a href="http://127.0.0.1:8080/foo-file.css">http://127.0.0.1:8080/foo-file.css</a>", host: "<a href="http://example.com">example.com</a>", referrer: "<a href="http://example.com/index.html">http://example.com/index.html</a>"</div></div><div><br></div><div>it seems to kind of work if i add a</div><div><br></div><div>user mdeanda users;</div><div><br></div><div>to the config and change the permission to /var/lib/nginx/* to my local user (and create lots of folders in the proxy directory) but that's obviously not the correct way. has anybody dealt with this? i know ubuntu and others tend to run nginx as a www-data user, is that what we need for nginx? a new user?</div><div><br></div><div>-m</div><div><br></div></div>