CI ~ CodeIgniter在nginx下报错404 Not Found ,解决办法

CI ~ CodeIgniter在nginx下报错404 Not Found ,解决办法

 

思路:linux下的/etc/nginx/conf.d,找到nginx的配置文件,修改默认配置文件为自己的新网站配置

 

下面ABC替换为你的网址,最后再重启服务器即可,service nginx restart

###################### Default ################################
server
{
listen 80;
server_name www.ABC.com;
index index.html index.htm index.php;
root /data/wwwroot/www.ABC.com;
error_log /var/log/nginx/www.ABC.com-error.log crit;
access_log /var/log/nginx/www.ABC.com-access.log;
include extra/*.conf;


#------------- SSL Start --------------


#------------- SSL End ---------------
}
posted @ 2020-05-09 17:43  谦信君  阅读(877)  评论(0编辑  收藏  举报