Welcome! Log In Create A New Profile

Advanced

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

Reinis Rozitis
September 26, 2018 06:34AM
> 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 configuration is very simple, but I can not find the
> problem.

Again the error is not coming from nginx but your backend (you either didn't add the "/" handling in the right place or maybe didn't restart the gunicorn workers afterwards).

The configuration change you made doesn't make any difference in the way nginx operated before, what I meant was something like this:

location = / {
return 301 /inicio/;
}


Obviously this is just a workaround and if you can manage to fix the backend this location block is not needed.

rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Configuration problem: request default 15.15.15.15/ not working

Frank_Mascarell September 24, 2018 08:14PM

RE: Configuration problem: request default 15.15.15.15/ not working

Reinis Rozitis September 25, 2018 04:16AM

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

Frank_Mascarell September 25, 2018 08:20PM

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

Reinis Rozitis September 26, 2018 06:34AM

Re: Configuration problem: request default 15.15.15.15/ not working

Frank_Mascarell September 26, 2018 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
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