Custom error_page redirects not working #11323
Labels
needs-kind
Indicates a PR lacks a `kind/foo` label and requires one.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
NGINX Ingress controller version: 1.10.0
👍 kubectl version
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.7-eks-b9c9ed7
Environment :
GKE , EKS , AKS
OS : Alpine Linux
What happened:
I wanted to have custom error_page for specific error code . However , when error_page defined in server-snippet it doesn't work .
I tried both with proxy_intercept_errors on and without proxy_intercept_errors . It doesn't redirect .
server-snippet: | proxy_intercept_errors on error_page 302 /etc/nginx/error_files/302.html; location = /etc/nginx/error_files/302.html { internal; } }
What you expected to happen:
302 redirect to work
How to reproduce it (as minimally and precisely as possible):
Create a simple ingress with the above server-snippet in the configmap and attempt to reach a page that doesn't exist.
The text was updated successfully, but these errors were encountered: