Use CI. Routing is easy to appear 404

Source: Internet
Author: User
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
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.