You first try to access any file under the directory. If you can access it, the directory configuration is correct, and then start troubleshooting the program in the index.php file. Otherwise, the configuration is unsuccessful and the site needs to be reconfigured
To troubleshoot this kind of problem, first check what files cannot be seen, such as .php, .html, .jpg
What is the server system?
First check whether the permissions of your site directory are acceptable. Read
Whether nmp is started in lnmp
Check whether the site directory configured by nginx is always there
Whether there are other routes
Whether the port is occupied
etc. . . . .
You first try to access any file under the directory. If you can access it, the directory configuration is correct, and then start troubleshooting the program in the index.php file. Otherwise, the configuration is unsuccessful and the site needs to be reconfigured