Please use this template for troubleshooting questions.
My issue: Curl command is resolving but the UI URL is giving 404 issue.
ubuntu@ltts-devops:~/ingress-migration$ curl -L --resolve appd.us.daintree.dev:443:52.151.239.28 https://appd.us.daintree.dev:443/rajgateway/
<!DOCTYPE html>
<html lang="en">
<head>
<base id="baseHref" href="/" data-path="/" />
<meta charset="utf-8" />
<title>DCS</title>
<!-- Better Uptime -->
<script
id="betteruptime-script"
data-id="126549"
async="async"
type="text/javascript"
></script>
<script type="text/javascript">
-----------------
UI is giving 404 error -
How I encountered the problem: I have create Gateway and HTTPRoute based on my ingress resource.
Gateway Status -
Conditions:
Last Transition Time: 2026-02-20T10:28:36Z
Message: The Listener is accepted
Observed Generation: 1
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2026-02-20T10:28:36Z
Message: The Listener is programmed
Observed Generation: 1
Reason: Programmed
Status: True
Type: Programmed
HTTPRoute Status -
Conditions:
Last Transition Time: 2026-02-20T10:28:36Z
Message: The Route is accepted
Observed Generation: 1
Reason: Accepted
Status: True
Type: Accepted
Last Transition Time: 2026-02-20T10:28:36Z
Message: All references are resolved
NGF -
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yaml
helm install ngf oci://ghcr.io/nginx/charts/nginx-gateway-fabric -n kube-system --set gatewayClass=nginx-ngf --set service.type=LoadBalancer
Solutions I’ve tried: It seems to be it is not routing the Path correctly. So in HTTPRoute, I have used URLRewrite like below. But still it is ignoring.
- backendRefs:
- group: “”
kind: Service
name: rajgateway-commissioning-ui
port: 5002
weight: 1
matches: - path:
type: PathPrefix
value: /rajgateway/
filters: - type: URLRewrite
urlRewrite:
path:
type: ReplaceFullPath
replaceFullPath: /
- group: “”
Also, I have used SnippetsFilter, But it is also not working.
Version of NGF and/or NGINX: app.kubernetes.io/name=nginx-gateway
helm.sh/chart=nginx-gateway-fabric-2.4.2
Deployment environment: Dev
