nginx.conf

worker_processes  1;
events { worker_connections
1024; }
http {
include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 22816; #server_name localhost; location / {   if ($http_accept ~* .*json.*) {     proxy_pass http://IP_1:8082;     break;   }   proxy_pass http://IP_2:8081; } } }

 

相关文章: