Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

fastcgi_cache_path problem

$
0
0
I have two instances of nginx running (say n1 and n2) and due the nature of n2 it shoud be properly separated from n1. Therefore it has a configuration file of its own with n1 (the web server) running under user "nginx" and n2 (the app admin server) running under user "appadmin". Everything works except... Whatever I do and whatever I set to fastcgi_cache_path at n2 it continues to use the default path defined for n1.

Using default directory permissions n2 is not able to create a subdirectory to the diretory owned by n1. When the cache path diretory permissions are set to 777 (bad idea, only tested it) we will be faced with subdirectories being created for users "nginx" and "appadmin" and both instances crash at some point.

It is to be noted that n2 DOES create the root directory for fastcgi_cache but it does NOT use them. It will try to create the subdirs in the wrong (default) directory.

It seems to me that the nginx build (Centos 7, from nginx repository) not honouring the nginx.conf settings properly.

So far the only way to make things work is use the same user and the shared cache path. Not good even though I may be too cautious.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>