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 ---------------
}

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-01-07
  • 2022-01-01
猜你喜欢
  • 2021-08-26
  • 2021-10-18
  • 2021-09-07
  • 2021-09-19
  • 2021-05-17
相关资源
相似解决方案