# another virtual host using mix of IP-, name-, and port-based configuration server { listen 8080; location /api/ { proxy_pass http://localhost:3001/api/; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } location / { proxy_pass http://localhost:3000/; } }