Fastcgi_cache permissions

Maxim Ozerov maxozerov at
Thu Mar 9 14:58:38 UTC 2017

And what is the purpose of changing  permissions?

In other words - nginx.conf - user www-data; So for example, Directories Access: (0700/drwx) with Uid: (33/www-data)  And no one forbids you to access the cache from this user for manipulating files (allow other process (for example php-fpm runs as www-data) to delete Nginx cache files).

-----Original Message-----
From: nginx [mailto:nginx-bounces at] On Behalf Of maznislav
Sent: Thursday, March 9, 2017 5:06 PM
To: nginx at
Subject: Fastcgi_cache permissions

Hello, I was searching for an answer for this question quite a bit, but unfortunately I was not able to find such, so any help is much appreciated.
The issue is the following - I have enabled Fastcgi_cache for my server and I have noticed that the cache has very restricted permissions 700 to be precise. I need to be able to change those permissions, but unfortunately I am not able to do so. I do not see any configuration variable that is responsible for this, neither the nginx process uses the umask value set for generating the permissions for those files. If someone has an idea how can I make nginx to use custom permissions for the cache that would great.

Thanks a lot.


Posted at Nginx Forum:,272853,272853#msg-272853

nginx mailing list
nginx at

More information about the nginx mailing list