Re: Configuration problem: request default 15.15.15.15/ not working

2018-09-26 Thread Frank_Mascarell
Effectively it was necessary to restart gunicorn every time that I modify the file urls.py so that the changes take effect. I did not know that. I did it like that: $ systemctl daemon-reload $ systemctl restart gunicorn Thanks for the help. Posted at Nginx Forum: https://forum.nginx.org/read.

Re: RE: Configuration problem: request default 15.15.15.15/ not working

2018-09-25 Thread Frank_Mascarell
I've also tried adding "/" and throwing the same error. I have also added to the .conf file: location = / { include proxy_params; proxy_pass http://unix:/run/gunicorn.sock; } before the fragment location / {..} with the same error. This error is very strange. The configuratio

Configuration problem: request default 15.15.15.15/ not working

2018-09-24 Thread Frank_Mascarell
I'm testing Nginx with a django application, the requests https://15.15.15.15/admin/ and https://15.15.15.15/inicio/ work correctly, but https://15.15.15.15/ throw error "Not found: The requested URL / was not found on this server. ", And I can not find the error. This is the configuration: server

Re: Problem when reconfiguring Nginx for SSL with self-signed certificate

2018-09-08 Thread Frank_Mascarell
Greetings, I think my days of suffering are over. After reading hundreds of logs, I found the problem. An update of Whitenoise to 4.0 where you must change the shape of the configuration, caused that with my old configuration the gunicorn service will throw errors. The rest is all right. http://wh

Re: Problem when reconfiguring Nginx for SSL with self-signed certificate

2018-09-05 Thread Frank_Mascarell
root@BaseVPS-ubuntu1804-django20:~# curl -v https://15.15.15.15/test * Trying 15.15.15.15... * TCP_NODELAY set * Connected to 15.15.15.15 (15.15.15.15) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certif

Re: Problem when reconfiguring Nginx for SSL with self-signed certificate

2018-09-05 Thread Frank_Mascarell
It has also tried the proxy_passs an http, with the same error. This is like finding a needle in a pocket: stressful and disappointing. root@BaseVPS-ubuntu1804-django20:~# systemctl status gunicorn ● gunicorn.service - gunicorn daemon Loaded: loaded (/etc/systemd/system/gunicorn.service; disab

Problem when reconfiguring Nginx for SSL with self-signed certificate

2018-09-04 Thread Frank_Mascarell
I have a VPS on Digital Ocean with Ubuntu 18.04, Nginx, Gunicorn, Django, and a test web application, all configured (ufw) to work with http: 80. Everything works perfectly. Tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18