Nginx Jump Specified interface

Source: Internet
Author: User
Nginx Jump Specified interface
Scene:
In the case of a stub test, the program accesses the stub interface (which provides false data) instead of the actual interface.
But the domain name written in the program, it is impossible to write stub IP.
If you write the IP of the stub, then you have to change the code when you go online. (As long as you move the code, it is risky)
So we need to do a mapping.
Use Nginx to implement this function
Configuration file name: yunmasoft.com.conf
Configuration file Contents:

server {        80;        server_name yunmasoft.com www.yunmasoft.com;        if"^/user/loginInput$" ) {                rewrite ^/(.*)$ http://123.57.250.51/$1 redirect;        }        location / {                proxy_pass    http://182.92.97.72:8083;# proxy_redirect on ;indexindexindexindex.htm;        }        500502503504 /50x.html;}


Reference: http://hw1287789687.iteye.com/admin/blogs/2279741

'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
  • '). Text (i)); }; $numbering. FadeIn (1700); }); });

    The above describes the Nginx jump to specify the interface, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

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