Re: httpd with multiple php-fpm pools in separate chroots

2020-01-05 Thread Stuart Henderson
On 2020/01/05 07:43, Nazar Zhuk wrote: > On 2020-01-04 09:21, Stuart Henderson wrote: > > On 2020-01-04, Nazar Zhuk wrote: > > > I get SCRIPT_FILENAME passed from httpd relative to httpd chroot > > > (/site1/htdocs/... ) and PHP being chrooted into /var/www/site1 needs > > > that to be relative to

Re: httpd with multiple php-fpm pools in separate chroots

2020-01-04 Thread Nazar Zhuk
On 2020-01-04 09:21, Stuart Henderson wrote: On 2020-01-04, Nazar Zhuk wrote: I get SCRIPT_FILENAME passed from httpd relative to httpd chroot (/site1/htdocs/... ) and PHP being chrooted into /var/www/site1 needs that to be relative to it's own chroot (/htdocs/...). httpd is a bit inflexible

Re: httpd with multiple php-fpm pools in separate chroots

2020-01-04 Thread Stuart Henderson
On 2020-01-04, Nazar Zhuk wrote: > I get SCRIPT_FILENAME passed from httpd relative to httpd chroot > (/site1/htdocs/... ) and PHP being chrooted into /var/www/site1 needs > that to be relative to it's own chroot (/htdocs/...). httpd is a bit inflexible (intentionally, I think). Can you work ar

Re: httpd with multiple php-fpm pools in separate chroots

2020-01-03 Thread Nazar Zhuk
On 2019-12-29 12:07, Vadim Zhukov wrote: I have setup like below working for me, with base httpd and php-7.3 package. I have PHP web app installed into /var/www/webapp directory, with 'web' subdirectory serving as HTTP root, and I only want to handle request paths starting with '/api' here. The

Re: httpd with multiple php-fpm pools in separate chroots

2019-12-29 Thread Vadim Zhukov
I have setup like below working for me, with base httpd and php-7.3 package. I have PHP web app installed into /var/www/webapp directory, with 'web' subdirectory serving as HTTP root, and I only want to handle request paths starting with '/api' here. The /etc/httpd.conf: server "my.server" {

httpd with multiple php-fpm pools in separate chroots

2019-12-28 Thread Nazar Zhuk
Hello, I am trying to run multiple PHP sites, each in it's own chroot: /var/www/site1, /var/www/site2, etc. Document roots are /var/www/siteX/htdocs. The issue is that fastcgi DOCUMENT_ROOT and SCRIPT_FILENAME generated by httpd are relative to httpd chroot and include /siteX. php-fpm can't