Re: [IE] Re: Rewrite with number after hyphen

2018-09-05 Thread Ivan Bianchi
Hi Jason, that's a very nice tip! I finally get it enabling *rewrite_log* and *error_log* at *notice*. but this definitely seems a great alternative. Many thanks, On Wed, Sep 5, 2018 at 8:29 PM Jason Whittington < jason.whitting...@equifax.com> wrote: > FWIW when I debug this sort of thing I li

Re: nginx sends 301 redirect for alias in location

2018-09-05 Thread Peter Volkov
On Wed, Sep 5, 2018 at 3:25 PM, Maxim Dounin wrote: > On Wed, Sep 05, 2018 at 09:58:54AM +0300, Peter Volkov wrote: > > > Hi. Could you, please, explain. Why nginx sends 301 redirect for the > > following vhost: > > > > server { > > listen 80; > > server_name test.domain.tv

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 Francis Daly
On Wed, Sep 05, 2018 at 04:49:19PM -0400, Frank_Mascarell wrote: Hi there, > It has also tried the proxy_passs an http, with the same error. Can you run a command like "curl -v https://15.15.15.15/test";, and show the output that you get? And if it is curl reporting that it does not like the ce

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

RE: [IE] Re: Rewrite with number after hyphen

2018-09-05 Thread Jason Whittington
FWIW when I debug this sort of thing I like to emit a response header identifying which rule is routing the request, like this: location /a/ { add_header X-nginx-debug /a/ proxy_pass http://whatever/; } That way you can use F12 tools or some other inspection on the result and see exactly

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

2018-09-05 Thread Francis Daly
On Tue, Sep 04, 2018 at 02:30:18PM -0400, Frank_Mascarell wrote: Hi there, > 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. > Now I modify the file /sites-available

Re: Rewrite with number after hyphen

2018-09-05 Thread Ivan Bianchi
Hi Francis, many thanks for your response and guidelines. Indeed you were right that there was another location capturing the request. Best regards, On Mon, Sep 3, 2018 at 2:36 PM Francis Daly wrote: > On Mon, Sep 03, 2018 at 08:13:11AM +0200, Ivan Bianchi wrote: > > Hi there, > > > > location

Re: nginx sends 301 redirect for alias in location

2018-09-05 Thread Maxim Dounin
Hello! On Wed, Sep 05, 2018 at 09:58:54AM +0300, Peter Volkov wrote: > Hi. Could you, please, explain. Why nginx sends 301 redirect for the > following vhost: > > server { > listen 80; > server_name test.domain.tv ; > > access_log off; > > location