server { listen *:80; root /dev/null; location / { autoindex off; proxy_pass http://exchange:8081; } location /admin { autoindex off; proxy_pass http://exchange:18080; } }