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.