CI has 404 million questions when accessing tung.pdf

Source: Internet
Author: User
Why can't I access admin. php in nginx when I access the 404 directory structure in tung.pdf?
Error 404

The nginx configuration is as follows:

It is still the following configuration, or 404, it is speechless. Ci does not set path_info or write other routes. Strange. please advise.

Reply to discussion (solution)

Your php root has not been declared

Your php root has not been declared

Do you mean the main directory specified by nginx? This specifies

Location/index. php {
Index. php;
If (! -E $ request_filename ){
Rewrite ^/(. *) $/index. php? $1 last;
Location/admin. php {
Index admin. php;
If (! -E $ request_filename ){
Rewrite./admin. php? $1 last;
Two locations are added, but the index. php on the homepage cannot be omitted. Very depressing. ci is too dependent on rewrite.

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: 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.