: This article describes how to configure the reverse proxy restfull interface for nginx. For more information about PHP tutorials, see. Restfull written by nodejs, such as http: // 172.16.0.1: 4050/alipayapi,
Api security and management with ports are not ideal, so it is easy to use nginx Reverse proxy;
Http {''' server {''' # proxy start location/alipayapi {proxy_pass http: // 127.0.0.1: 4050/alipay} # proxy end }}
After configuring the proxy reverse proxy, restart the nginx server. the client's api request can be changed to http: // 172.16.0.1/alipaiapi
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes how to configure the reverse proxy restfull interface for nginx, including some content. I hope to help anyone who is interested in PHP tutorials.