Welcome! Log In Create A New Profile

Advanced

Configuration problem: request default 15.15.15.15/ not working

September 24, 2018 08:14PM
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{
#Configuracion SSL

listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name 15.15.15.15;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;

#root /home/gela/LibrosWeb;

location = /favicon.ico { access_log off; log_not_found off; }
location /robots.txt { alias /var/www/LibrosWeb/robots.txt ;}

location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}

location /static {
alias /home/gela/LibrosWeb/static;
}
}

server{
#Configuracion http

listen 80;
listen [::]:80;
server_name 15.15.15.15;
return 301 https://$server_name$request_uri;
}

and urls.py django:

urlpatterns = [
path('', RedirectView.as_view(url='/inicio/', permanent=True)),
path('inicio/', include('inicio.urls')),
path('admin/', admin.site.urls),
]
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: 300
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