Valentin V. Bartenev
March 21, 2012 03:00PM
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
Subject Author Posted

Check if php-file exists in chroot jail

maverick78 March 21, 2012 10:05AM

Re: Check if php-file exists in chroot jail

Valentin V. Bartenev March 21, 2012 12:16PM

Re: Check if php-file exists in chroot jail

maverick78 March 21, 2012 01:10PM

Re: Check if php-file exists in chroot jail

Valentin V. Bartenev March 21, 2012 03:00PM

Re: Check if php-file exists in chroot jail

Francis Daly March 21, 2012 03:02PM

Re: Check if php-file exists in chroot jail

maverick78 March 21, 2012 05:22PM

Re: Check if php-file exists in chroot jail

Francis Daly March 21, 2012 07:24PM

Re: Check if php-file exists in chroot jail

maverick78 March 22, 2012 05:24AM

Re: Check if php-file exists in chroot jail

Francis Daly March 22, 2012 02:48PM

Re: Check if php-file exists in chroot jail

maverick78 March 22, 2012 04:17PM

Re: Check if php-file exists in chroot jail

Volodymyr Kostyrko March 24, 2012 12:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 114
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready