Solving "No input file specified" problem by using pseudo-static rule under Nginx

Source: Internet
Author: User
Keywords Settle Nginx file.

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Yesterday to the blog to a new space, resolved the domain name, today found that can ping, home can open, but click on the details of the page is found a blank page, only one line of words: No input file specified.

Online search for a while, there are various statements, can not be resolved. Later, we found a more successful solution by adding the following pseudo static rule:

Rewriteengine? On

rewritebase?/

rewritecond?%{request_filename}?! -F

rewritecond?%{request_filename}?! -D

rewriterule?^ (. *) $?/index.php?/$1? L]

And the above pseudo static code does not apply to my blog space, because I am the Nginx server, therefore needs to conform to the nginx under the pseudo static rule. Combined with the pseudo static characteristics of nginx, after modification, the final solution is to add the following pseudo static rules for the server:

if (!-e $request _filename) {

Rewrite ^ (. *) $/index.php?/$1 last;}

After the pseudo static rule is added correctly, the problem is resolved.

Article Source: Zhou Sen Standard Blog

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.