You need to enable JavaScript to run this app.
Volcengine Kubernetes Engine

Volcengine Kubernetes Engine

Copy page
Download PDF
Service and Ingress FAQs
How do I fix the 404 error reported when I access the resources via an Ingress with the rewrite-target setting?
Copy page
Download PDF
How do I fix the 404 error reported when I access the resources via an Ingress with the rewrite-target setting?
Issue description​
After path rewriting is configured by using the rewrite-target annotation in the Ingress, some resources on the page fail to load or a white screen appears.​
Cause​
The possible reasons are as follows:​
  • The rewrite-target annotation does not use a regular expression.​
  • The resource path in the application is hardcoded to the root directory.​
Solution​
  • Check whether rewrite-target is used together with a regular expression and capture groups. For details, see Rewrite.​
  • Check whether the front-end request accesses the correct path.​
​
Last updated: 2026.07.23 14:31:45