<p dir="auto">hey, i am deploying my nextjs app on nginx  where django is running on nginx. i want my nextjs app to run on <strong>mydomain/something</strong> but its not working giving 404 page not found error whereas when i run it on mydomain/ it work fine.<br>
please suggest something how i can run it. i followed your wiki link but its not working.do i need to change my server.js file which is like this.</p>
<p dir="auto">`const next = require('next')<br>
const routes = require('./routes')<br>
const app = next()<br>
const handler = routes.getRequestHandler(app)</p>
<p dir="auto">// Without express.js<br>
const {createServer} = require('http')<br>
app.prepare().then(() =&gt; {<br>
createServer(handler).listen(4000, err =&gt; {<br>
if (err) throw err<br>
console.log('&gt; Ready on <a href="http://192.168.90.12:4000" rel="nofollow">http://192.168.90.12:4000</a>')<br>
})<br>
})`</p>
<p dir="auto">Next uses routes like <code class="notranslate">/_next</code> and <code class="notranslate">/static</code> by default. If you wanted to run multiple different Next apps on the same domain, they would collide with each other. Can these paths be made configurable?</p>