nginx cache opendir failed
Stev e Holdoway
steve at greengecko.co.nz
Mon May 20 09:19:17 UTC 2013
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 at 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 at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list