D
D
Django Almighty2021-11-07 12:14:07
Nginx
Django Almighty, 2021-11-07 12:14:07

Why is nginx redirecting me?

I'm configuring the Nginx server. Deployed the API. When I click on the link domain.com/api/accounts , Nginx redirects me to domain/api/id/api//accounts . In doing so, it breaks the route, as in the example.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Django Almighty, 2021-11-07
@12345678XYU87654321

The error was in the fast api and its default route.

K
ky0, 2021-11-07
@ky0

Read about the trailing slash in the proxy_pass.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question