Access to HTML is OK, access to PHPfile not found

Change the owner and group of the www directory to the nginx user and try it. Reference command: chown nginx.nginx /home/www

ps aux |grep nginx to see what user your nginx is running as.

According to the screenshot, the work process is running as the nginx user, there is no problem, please execute nginx -s reload to reload the configuration file

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324893057&siteId=291194637