Nginx Path parsing

Source: Internet
Author: User

Address of the visit: Http://ju.com/admin.php/DaiLogin/showLogin
Error message:
2015/05/26 19:09:16 [ERROR] 24049#0: *546 rewrite or internal redirection cycle while processing "/index.php//index.php//i ndex.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//admin.php/ Dailogin/showlogin ", client:127.0.0.1, server:ju.com, Request:" Get/admin.php/dailogin/showlogin http/1.1 ", Host:" Ju . com "
Nginx Configuration parameters:


The server is also this configuration no problem is the same version of Nginx. Local this again how can there be so many index.php
How should I modify it?

Reply content:

Address of the visit: Http://ju.com/admin.php/DaiLogin/showLogin
Error message:
2015/05/26 19:09:16 [ERROR] 24049#0: *546 rewrite or internal redirection cycle while processing "/index.php//index.php//i ndex.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//index.php//admin.php/ Dailogin/showlogin ", client:127.0.0.1, server:ju.com, Request:" Get/admin.php/dailogin/showlogin http/1.1 ", Host:" Ju . com "
Nginx Configuration parameters:


The server is also this configuration no problem is the same version of Nginx. Local this again how can there be so many index.php
How should I modify it?

This is not the Nginx rewrite classic dead loop problem. Just change the last one you made location / rewrite last break .

Last will be detected after the URL match, continue to match location, of course, can match to/, so the dead loop, Nginx Judge 10 times after the exit, that is, your question appears 1 + 10 = 11 index.php.

Reference here: http://segmentfault.com/a/1190000002797606

The site is already accessible.

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