# another virtual host using mix of IP-, name-, and port-based configuration server { listen 8080; location /api/ { proxy_pass http://localhost:3001/api/; } location / { proxy_pass http://localhost:3000/; } }