Nginx configured virtual host to appear File not found.

I installed lnmp, under linux. I created a new ci project (ci framework). The directory is / usr/local/nginx/html/ci, as shown in the following figure:

;http://localhost/ci/

hosts127.0.0.1 www.test.com
nginx.confserver_name www.test.com


nginx.conf:


Nginx http://www.test.com/

what went wrong?

Feb.27,2021

found the problem. The root under location ~ .php ${should also be changed to / usr/local/nginx/html/ci/

.
Menu