title: Swagger UI not working as expected while service behind Nginx reverse-proxy
body: <p>I use swagger-ui-express package(<code>https://github.com/scottie1984/swagger-ui-express</code>) (Node.js) and work fine with this config:</p>
  
  <pre><code>const swaggerUi = require('swagger-ui-express');
  const swaggerDocument = require('./swagger.json');
  app.use('/api-docs',swaggerUi.serve, swaggerUi.setup(swaggerDocument));
  
  </code></pre>
  
  <p>when directly got to /api-docs every thing is fine,
  but when i come from nginx for example <code>host/myApp/api-docs</code> redirect me to <code>host/api-docs</code> and it's obvious that after redirect I get 404 </p>