<div>I'm trying to setup Django through UWSGI using Nginx.</div><div><br></div><div>I got the UWSGI pass to work using this function</div><div><br></div><div> location / {</div><div> include uwsgi_params;</div>
<div> uwsgi_pass <a href="http://127.0.0.1:9001">127.0.0.1:9001</a>;</div><div> }</div><div>Unfortunately when I visit /django/admin. I get an error</div><div><br></div><div>Page not found (404) Request Method: GET Request URL: <a href="http://69.x.x.x/django/admin">http://69.x.x.x/django/admin</a> Using the URLconf defined in Django.urls, Django tried these URL patterns, in this order: ^admin/</div>
<div><br></div><div>How can I have nginx rewrite the url to not pass the /django part?</div>