错误提示为 /var/log/nginx/error.log

 

Nginx 'rewrite or internal redirection cycle while internally redirecting' resulting in 500

 

找了好久,怎么改都是无限循环index/

最后发现rewrite这样写就可以了

 if (!-e $request_filename){             

  rewrite ^(.*)$ /index.php?q=$1 last;             

  break;     

相关文章:

  • 2022-12-23
  • 2022-01-12
  • 2021-08-02
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案