简体   繁体   中英

Nginx & PHP5-fpm + CodeIgniter or Kohana = 404 error?

Ok, this is not a rewrite error because I did not touch the conf file.

I used http://www.farinspace.com/install-and-configure-nginx-server/ to make the web server.

The thing is CodeIgniter & Kohana does work on http://url.com/sub/ and http://url.com/sub/index.php

But, it does not work with http://url.com/sub/index.php/welcome or any controller (am I calling that right?), I get a 404 Not found.

am I calling that right?

Obviously not. 404 error in kohana / codeigniter means that no matching controller / action could be found. Additionally 404 error by the server means that the overall resource was not found.

Nginx requires a different server configuration than apache. RewriteRule is only one example.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM