http { server { location /kangas/ { proxy_pass http://localhost:7640/kangas/ } location / { proxy_pass http://localhost:7840/ } } }