How to solve 404 error during nginx + php execution

Source: Internet
Author: User
How to solve the 404 problem during nginx + php execution

Nginx + php is running 404. how can this problem be solved?


Reply to discussion (solution)

In the nginx configuration file, there is a client_max_body_site = 20 m and keepalive_timeout = 65. I don't know if there is any relationship with the two. please advise!

Why can't I find the page in Khan 404? Check whether your link is correct.

Why can't I find the page in Khan 404? Check whether your link is correct.
No, this problem actually occurs during the process of generating static files. if I choose to generate 100 static files at a time, 404 will appear immediately, and 20 files will be generated at a time, it may or may not cause 404. if you select to generate 10 files at a time, the 404 error will not occur.

Do you generate 100 static pages through loops?

Do you generate 100 static pages through loops? Yes

Paste your code and see if it is an endless loop.

After the problem is solved, nginx has a maximum execution time limit, which is useless even if set_time_limit (0) is used in the program.

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.