Nginx + PHP 环境配置 CI

Nginx  + PHP 环境配好后  Nginx.conf文件:

CI欢迎页面正常显示,但是像:http://localhost/user 这样的返回 404错误。网上很多回答都无法解决。根据Nginx官网提示

 location / 添加try_files $uri $uri/ /index.php;  修改后

nginx.conf for ci - Codeigniter

猜你喜欢

转载自www.cnblogs.com/zmblx/p/12307354.html