View Single Post
  #4   (View Single Post)  
Old 23rd June 2016
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 233
Default

When a program is run in a chroot, that directory becomes / to that program. So if nginx in chrooted into /var/www, all nginx sees is /. So your path in the nginx config can't include /var/www/something. It has to be just /something.

So if nginx looks at a hardcoded path of /etc/nginx/conf/auth_acs then you have to put the file in /var/www/etc/nginx/conf/auth_acs for nginx to find it in the chroot.

Disclaimer: I don't use nginx, I'm assuming nginx needs to access this file from inside the chroot and it doesn't have a helper process outside passing things in nor reads the file before chrooting.

Tim.
Reply With Quote