On 2017-08-09, Maurizio De Magnis <r...@olisti.co> wrote:
>     server {
>       server_name myapp.com;
>       access_log /var/www/apps/my_app/logs/access.log;
>       error_log /var/www/apps/my_app/logs/error.log;
>       root /var/www/apps/my_app/current;
>       location / {
>         proxy_pass http://unix:/var/www/apps/my_app/application.socket;

That seems wrong, why would you have http://unix:/...?

> Do you have any suggestions on how to implement a unix socket connection with 
> NGINX chroot enabled?

You may need to use the path inside the chroot (/apps/... rather than
/var/www/apps/...), especially if you reload rather than restart nginx
to reconfigure. But it might be simpler to just add symlinks so that
the path /var/www/whatever works whether you're inside or outside the

cd /var/www
mkdir var
ln -s .. var/www 

Reply via email to