On Wednesday 21 March 2012 21:10:19 maverick78 wrote:
> Thanks for your reply.
>
> I got stuck with finding out the proper settings.
>
> My files are located in /www/example.com/public. This is set as document
> root in nginx server block.
But in your configuration you override it by "root /public". Just remove "root
/public" from the location directive or set it to "/www/example.com/public".
> In my pool of php-fpm I set a chroot path.
>
> chroot = /www/example.com
>
> That's why I have to set another path to document_root in my location
> block for php-files.
>
> root /public;
No, this directive is for nginx only. I suppose you use fastcgi for php-fpm and
you set "document root" by relevant fastcgi_param. Am I right? Please, provide
your full config.
wbr, Valentin V. Bartenev
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx