Ali cloud two DNS servers point to another host - -Nginx

  
This is no domain name server in a cloud Ali, but the configuration is high, and therefore would like to borrow another Ali cloud server (lower configuration) has been filed domain name to jump to this high configuration servers, use nginx reverse proxy

{server the listen 80; server_name wxapi.exampile.com; // another Ali cloud server has the record of the domain root / Home / Soft / dist; . # the Configuration Files for the Load server at the Block default the include / etc / nginx / default. . D / * the conf; LOCATION / { } LOCATION / API { proxy_pass http://427.125.114.42:8888; // address of this station the service program running } LOCATION / Login { proxy_pass http://427.125.124.412:8888 ; } LOCATION / xCx { proxy_pass http://427.122.104.412:8888; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } }

 

Ali configured low cloud server configuration:

 

Refer to: https: //blog.csdn.net/visiontime/article/details/70880388

 

Guess you like

Origin www.cnblogs.com/Amos-Turing/p/10943998.html