Apache turns on pseudo-static and reports 500 errors.

Source: Internet
Author: User
Tags apache log

Originating From: http://blog.163.com/lgh_2002/blog/static/44017526201051452939761/

Apache turns on pseudo-static and reports 500 errors.

Check the Apache log for the following information:

Request exceeded the limit of internal redirects due to probable configuration error. Use ' limitinternalrecursion ' to increase the limit if necessary. Use the ' LogLevel debug ' to get a backtrace.

Logically, there should be no internal redirection overrun, because I've only opened 1 of links. Suspect that the rewrite module rule was incorrectly written and went into a dead loop. Suddenly I think of the. htaccess file, originally this site was tested for deployment under a subdirectory/xxxx, while. Htaccess was copied directly from another website.
Rewriteengine on
rewritebase/kohana/
Rewriterule ^ (application|modules|system)-[f,l]
Rewritecond%{request_filename}!-f
Rewritecond%{request_filename}!-d
Rewriterule. * index.php/$0 [pt,l]

Workaround: Change the red part of the code to the following

Rewriterule ^ (. *) $/index.php/$1 [pt,l]

Apache turns on pseudo-static and reports 500 errors.

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.