mongo-express get request issue with nginx proxy
<p>I have mongo-express(mongodb admin UI) running at <a href="http://localhost:8081" rel="nofollow">http://localhost:8081</a> on my ubuntu VPS. I wan to proxy it using nginx sever.</p>

<p>This works: 
/etc/nginx/sites-available/default</p>

<pre><code>server {
    listen 80;
    server_name xyz.com;
    location / {
        proxy_pass http://localhost:8081;
    }
}
</code></pre>

<p>xyz.com --> opens mongo-express admin page.</p>

<p>But this doesn't :( </p>

<pre><code>server {
    listen 80;
    server_name xyz.com;
    location /mongoadmin {
        proxy_pass http://localhost:8081;
    }
}
</code></pre>

<p>More details:</p>

<p>xyz.com/mongoadmin --> shows "Cannot GET /mongoadmin/" in web browser.</p>

<p>The debug log on mongo-express on server is also logging a GET request (/mongoadmin/)</p>