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


The error is coming from your py script and it actually tells what is the 
problem - the '/' url is not handled, so you probably need to add:

path('/', RedirectView.as_view(url='/inicio/', permanent=True)),

or location = / {} redirect in nginx.

rr

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

Reply via email to