server { listen 8085; listen [::]:8085; server_name localhost; location /service_a/ { proxy_pass http://127.0.0.1:5000; } location /service_b/ { proxy_pass http://127.0.0.1:5001; } }