location settings for Django Uwsgi Nginx Configuration for production

sandyman nginx-forum at forum.nginx.org
Sun Sep 17 13:16:12 UTC 2017


Hello Francis , 

Thank you for your help this far  

what happened was  I Set DEBUG=True in Django settings , and urlpatterns +=
staticfiles_urlpatterns()
this allowed  the files to be served in a non secure setting

I'm back to where I started.  I added to my config 

location = /test-this/ { return 200 "Yes, this is correct\n"; }

I stopped and started nginx , and restarted the server 

and then requesting http://www.sandyman.xyz/test-this/

I get the 404 

Request URL:http://www.asandhu.xyz/test-this/
Request Method:GET
Status Code:404 NOT FOUND


I'm stuck again

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276402,276419#msg-276419



More information about the nginx mailing list