Welcome! Log In Create A New Profile

Advanced

Re: location settings for Django Uwsgi Nginx Configuration for production

September 17, 2017 09:16AM
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
Subject Author Posted

location settings for Django Uwsgi Nginx Configuration for production

sandyman September 15, 2017 08:29AM

Re: location settings for Django Uwsgi Nginx Configuration for production

itpp2012 September 15, 2017 08:38AM

Re: location settings for Django Uwsgi Nginx Configuration for production

sandyman September 15, 2017 09:43AM

Re: location settings for Django Uwsgi Nginx Configuration for production

itpp2012 September 15, 2017 01:44PM

Re: location settings for Django Uwsgi Nginx Configuration for production

Francis Daly September 16, 2017 06:46AM

Re: location settings for Django Uwsgi Nginx Configuration for production

sandyman September 17, 2017 09:16AM

Re: location settings for Django Uwsgi Nginx Configuration for production

sandyman September 17, 2017 10:49AM

Re: location settings for Django Uwsgi Nginx Configuration for production

Francis Daly September 17, 2017 01:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready