Nginx accesses php file 502 after configuring https

configure nginx.conf after applying for ssl certificate in normal order
code is as follows:

there are no errors in the nginx log. There is no problem for https to access other files. It is only prompted to access the php file 502. Excuse me, where is the problem?

novice programmers don"t know much about server problems. They are always google, but rarely encounter problems like mine.

Feb.28,2021

I think the fastcgi_pass line in your nginx configuration file is incorrect. The socket you use in php-fpm is / tmp/php-cgi.sock , ah,
refer to this
https://codeshelper.com/q/10.

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bee900-31c24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bee900-31c24.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?