I have an iRedMail installation running php5-fpm and i setup a second website using virtual host.
The website it self works but i cant get php on the virtual host, it gives me a 502 error every time.
my virtual config is /etc/nginx/conf.d/virtual.conf
and my 2 php pools are in /etc/php5/fpm/pool.d/www.conf & /etc/php5/fpm/pool.d/www2.conf
here is my second pool file
https://prnt.sc/lzp45v
here is my virtual.conf
https://prnt.sc/lzp42d