Welcome! Log In Create A New Profile

Advanced

RE: RE: Fastcgi_cache permissions

Reinis Rozitis
March 09, 2017 12:26PM
> thanks for the reply. The use case that I have is when php-fpm is running as a
> user different than the nginx one. In this case the permissions being set as 0700
> basically deny any manipulation of the cached files from php scripts. Everytime
> you try something like this you get permission denied.

Why would you manipulate nginx cache files from php directly (or even if you do so why not run the nginx and phpfpm under same user then)?

If you want to purge the request (only valid reason which comes to my mind) you should configure fastcgi_cache_purge ( http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_cache_purge ). The drawback is that's only for the commercial version.

As an alternative you could use a third party module http://labs.frickle.com/nginx_ngx_cache_purge/
I'm not 100% sure about the compability with the newest nginx releases but you can contact the author about that (he is also in this list).

rr

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

Fastcgi_cache permissions

maznislav March 09, 2017 09:05AM

RE: Fastcgi_cache permissions

Maxim Ozerov March 09, 2017 10:00AM

Re: RE: Fastcgi_cache permissions

maznislav March 09, 2017 10:57AM

RE: RE: Fastcgi_cache permissions

Reinis Rozitis March 09, 2017 12:26PM

RE: RE: Fastcgi_cache permissions

Maxim Ozerov March 09, 2017 12:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 102
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready