Zend certified PHP/Magento developer

nginx: [emerg] host not found in upstream “php-fpm” in /var/www/html/magento/nginx.conf.sample:50

I’m newbie to magento as well as in nginx. So I was following a youtube video which uses wsl2 in creating a magento project. So I got this error nginx: [emerg] host not found in upstream “php-fpm” in /var/www/html/magento/nginx.conf.sample:50

And couldn’t really find an answer. This is v2.4.5 would really appreciate any help!