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.

.
Menu