i've installed nginx from the slackbuild and i have it run as a proxy for
tomcat with a config something like this...
sever {
server_name example.com;
location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
}
}
when it tries to load some files, it fails with the following error:
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: example.com, request: "GET
/foo-file.css HTTP/1.1", upstream: "http://127.0.0.1:8080/foo-file.css",
host: "example.com", referrer: "http://example.com/index.html"
it seems to kind of work if i add a
user mdeanda users;
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?
-m
_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/