Ask Your Question
4

What is the reason for too many redirects occurring in nginx-ingress when force-ssl is turned on?

asked 2023-05-16 17:04:02 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-16 17:19:01 +0000

ladyg gravatar image

Too many redirects may occur in nginx-ingress when force-ssl is turned on because the ingress controller is configured to redirect all HTTP requests to HTTPS. If the server receives a request on port 80, it will redirect to port 443, but the SSL certificate is not available on port 80, causing another redirect. This causes a loop of redirects, and the browser stops after a certain number of attempts to follow the redirects. To fix this, make sure the SSL certificate is available on the port being redirected from or configure the ingress controller to use a different port for SSL.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-16 17:04:02 +0000

Seen: 9 times

Last updated: May 16 '23