Use CI. Routing is easy to appear 404
This post was last edited by yao970953039 on 2013-03-11 16:42:41
A CI code is provided locally. Set the domain name LOCAL.CI, the results in addition to the home AutoLoad controller can use, the other controllers are all 404 errors!!
Local.ci/index.php can run.
Local.ci/index.php/reported 404 errors. Viewing the error log
2013/03/11 16:35:22 [ERROR] 11036#7224: *23 "d:\nginx-1.3.13/html/index.php/index.php" is not found (3:the system cannot Find the path specified), client:127.0.0.1, Server:local.ci, Request: "get/index.php/http/1.1", Host: "Local.ci"
. htaccess under Application. The code is Deny from all
Nginx Configuration
#user nobody;
Worker_processes 2;
#error_log Logs/error.log;
#error_log Logs/error.log Notice;
#error_log Logs/error.log Info;
#pid Logs/nginx.pid;
Events {
Worker_connections 1024;
}
HTTP {
Include Mime.types;
Default_type Application/octet-stream;
#log_format Main ' $remote _addr-$remote _user [$time _local] "$request" '
# ' $status $body _bytes_sent ' $http _referer '
# ' "$http _user_agent" "$http _x_forwarded_for" ';
#access_log Logs/access.log Main;
Sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
Keepalive_timeout 65;
#gzip on;
server {
Listen 80;
server_name local.ci;
#charset Koi8-r;
#access_log Logs/host.access.log Main;
Location/{
root HTML;
Index index.php;
}
Error_page 404/404.html;
# REDIRECT Server error pages to the static page/50x.html
#
Error_page 502 503 504/50x.html;
#location =/50x.html {
# root HTML;
#}
# Proxy The PHP scripts to Apache listening on 127.0.0.1:80