Welcome! Log In Create A New Profile

Advanced

Re: nginx cache opendir failed

May 20, 2013 05:20AM
So, you need to ensure all files can only be deleted by the owner, all
files created in the directory are in the same group as the directory
and, to the best of my knowledge, setuid is meaningless.

Ah, I see that it's a freebsd machine... setgid is the default
functionality on that OS.

This may work, but a basic understanding of file permissions will
produce a more workable solution. Who runs the web server? That's who
you need to set access up for.

Steve


On 20/05/13 21:10, Ronald Van Assche wrote:
> SOLVED:
>
> Just chmod 7777 ( 4 seven) /var/cache/www , the parent directory of the nginx cache and voilà, it works.
>
> Le 19 mai 2013 à 17:51, Ronald Van Assche <rva@onvaoo.com> a écrit :
>
>> Hi
>>
>> On a Freebsd 9.1 machine
>> Nginx 1.4.1
>>
>> opendir() "/var/cache/www/nginx2" failed (13: Permission denied)
>>
>> microcache dir :
>> drwxr-x--x 3 root wheel 512 May 19 17:05 /var/cache
>> drwxr-xr-x 3 www www 512 May 19 17:06 /var/cache/www
>> drwx------ 2 www www 512 May 19 17:06 nginx2
>>
>>
>> How to correct this ?
>>
>>
>> Thanks.
>>
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx cache opendir failed

Ronald Van Assche May 19, 2013 11:52AM

Re: nginx cache opendir failed

Ronald Van Assche May 20, 2013 05:12AM

Re: nginx cache opendir failed

GreenGecko May 20, 2013 05:20AM

Re: nginx cache opendir failed

Ronald Van Assche May 20, 2013 05:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready