Re: [Slackbuilds-users] nginx permissions?

2016-02-15 Thread Miguel De Anda
i actually [finally] figured out the problem. i only revisit this problem each time i setup a new system and run into the same issue and i think i solve it a different way each time. anyway, the solution to this issue is that the permissions to the /var/lib/nginx folder are 700 and should be 755. c

Re: [Slackbuilds-users] nginx permissions?

2015-07-12 Thread Miguel De Anda
basically it was to undo what the slackbuild did: # Make the temp path. mkdir -p $PKG/var/lib/$PRGNAM chmod 0700 $PKG/var/lib/$PRGNAM i'm not sure of the details of nginx creating the folders but i think its trying to create the folders as the user nginx runs as but since it can't access the /var

Re: [Slackbuilds-users] nginx permissions?

2015-07-12 Thread Thomas Morper
On Sun, 12 Jul 2015, Larry Hajali wrote: > What does setting the permissions of /var/lib/nginx to 755 accomplish? It will allow the worker processes to actually have access to the working directories :-) The SlackBuild sets /var/lib/nginx to 0700. On startup the master process will create the

Re: [Slackbuilds-users] nginx permissions?

2015-07-12 Thread Larry Hajali
On Wed, Jul 8, 2015 at 1:31 PM, Miguel De Anda wrote: > I just had to rebuild my nginx machine and I ran into this issue > again! I managed to fix it this time with a: > > chmod 755 /var/lib/nginx > What does setting the permissions of /var/lib/nginx to 755 accomplish? Nginx will create the folde

Re: [Slackbuilds-users] nginx permissions?

2015-07-08 Thread Miguel De Anda
I just had to rebuild my nginx machine and I ran into this issue again! I managed to fix it this time with a: chmod 755 /var/lib/nginx I notice the buildscript set it to 700. I simply installed it via slackrepo using nothing but defaults so nginx runs as user nobody. Might be worth checking out

Re: [Slackbuilds-users] nginx permissions?

2015-05-07 Thread Thomas Morper
On Tue, 5 May 2015, Miguel De Anda wrote: > i've installed nginx from the slackbuild and i have it run as a proxy for > tomcat with a config something like this... > when it tries to load some files, it fails with the following error: > "/var/lib/nginx/proxy/3/00/03" failed (13: Permissio

[Slackbuilds-users] nginx permissions?

2015-05-05 Thread Miguel De Anda
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_ad