Curl command is working fine But UI URL is giving 404 Not Found issue

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: /

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

Hey @rajasekhar.yannam, can you try installing the gateway-api crds with a newer version? According to the technical specifications, NGF version 2.4.2 uses gateway api version 1.4.1, but I see you’ve installed the 1.3.0 crds.

Try with:

kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.1/standard-install.yaml

or you can follow the instructions here Install NGINX Gateway Fabric with Helm | NGINX Documentation which always has the up-to date NGF version and Gateway api crd version.

Can you try to see if that fixes it?

@Benjamin_Jee , I have installed latest CRDs using Kubectl apply command, Still I am getting 404 issue.

ubuntu@ltts-devops:~$ kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.1/standard-install.yaml
customresourcedefinition.apiextensions.k8s.io/backendtlspolicies.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/gateways.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/grpcroutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/httproutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/referencegrants.gateway.networking.k8s.io configured

Will the issue might be nginx conf file?

Thanks,

Rajasekhar

Hey @rajasekhar.yannam, yea if you would be able to supply the HTTPRoutes, Gateway, SnippetsFiltter and any other potentially related YAML manifest files or spec in addition to the nginx configuration shown when running:

kubectl -n <nginx-deployment-namespace> exec -it deployments/<nginx-deployment> -- nginx -T

That would help give us more information as to whats not working.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.