常用转发

14201端口是web,14200端口是api

server {
   listen       8000;
   listen       [::]:8000;
   server_name  _;
   #root         /usr/share/nginx/html;

   # Load configuration files for the default server block.
   #include /etc/nginx/default.d/*.conf;

   location / {
      proxy_pass http://127.0.0.1:14201;
   }

   location ~* ^/+api/.* {
      proxy_pass http://127.0.0.1:14200;
   }

   error_page 404 /404.html;
   location = /404.html {
   }

   error_page 500 502 503 504 /50x.html;
   location = /50x.html {
   }
}