Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-17 Thread Francis Daly
On Sun, Sep 17, 2017 at 09:16:12AM -0400, sandyman wrote: Hi there, > 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.

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-17 Thread sandyman
2 hours later still struggling but getting some error logs now location /foo { return 200 "yikes ";} returns yikes .. however www.asandhu.xyz returns 502 log file states either uwsgi.sock failed (13: Permission denied) 664 and owned by me or (111: Connection refused) when chmod 777

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-17 Thread sandyman
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/ { ret

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-16 Thread Francis Daly
On Fri, Sep 15, 2017 at 08:29:20AM -0400, sandyman wrote: Hi there, > **server { >server_name sandyman.xyz www.sandyman.xyz ; >location /static { > alias /home/sandyman/production/django_project/assets/; > } > }** > ** GET Request ** > > Request URL:http://www.sandyman.xyz/

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-15 Thread itpp2012
A 404 is logged unless logging has been disabled, ask the hosting company where logs are, check nginx.conf what/where is logged. . Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276402,276407#msg-276407 ___ nginx mailing list nginx@nginx.org

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-15 Thread sandyman
error logs and access logs contain nothing As it is a hosting company i don't seem to have priviliges to enable debugginh I'm not allowed to sudo error_log logs/error.log; access_log logs/access.log; Posted at Nginx Forum: https://forum.nginx.org/read.php?2,

Re: location settings for Django Uwsgi Nginx Configuration for production

2017-09-15 Thread itpp2012
Have a look in the nginx error logfile where it expects the file to be. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276402,276403#msg-276403 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

location settings for Django Uwsgi Nginx Configuration for production

2017-09-15 Thread sandyman
Django settings STATICFILES_DIRS = [STATIC_DIR, ] STATIC_DIR = os.path.join(BASE_DIR, 'static') STATIC_ROOT = '/home/sandyman/production/django_project/assets/' STATIC_URL = '/assets/' local machine example file /home/sandyman/development/django_project/css/bootstrap.min.css Template