MySQL-within the framework PHP calls a method, Nginx 405 Error Status code:405 method not allowed

Source: Internet
Author: User
Tags error status code
Inside the Frame method a method nginx 405 error Status code:405 method not allowed

Remote address:102.224.214.168:80
Request url:http://test.miyabaobei.com/index.php/wap/paycenter-perpare_by_weixin.h ...
Request Method:get
Status code:405 Method not allowed

Reply content:

Inside the Frame method a method nginx 405 error Status code:405 method not allowed

Remote address:102.224.214.168:80
Request url:http://test.miyabaobei.com/index.php/wap/paycenter-perpare_by_weixin.h ...
Request Method:get
Status code:405 Method not allowed

A 405 error usually occurs when the requested method does not match your configuration, for example:

javascriptapp.post('/some/thing', function() {});

If I access/some/thing through the browser, I'm definitely throwing a 405 exception because the defined route only supports the Post method.

Look at the routing ah what frame ah.

Quite simply, you should be using a backbone, or similar front-end frame. This framework defaults to your server being restful, 405, is the request you initiated is not post, is put, you can grab a packet to look at. If you are using backbone, you can reply to me, I have only recently solved this problem.

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