I am using nginx ingress controller in my k8s cluster, with AWS L4 NLB with SSL Redirection based on this documentation: https://github.com/helm/charts/tree/master/stable/nginx-ingress#aws-l4-nlb-with-ssl-redirection
My website is multi-tenant: subdomain.domain.com. Since some limitations, we need to redirect requests from my main page subdomain.domain.com to subdomain.domain.com/app But ONLY the root url and not any other paths.
For example:
only
subdomain.domain.com goes to subdomain.domain.com/app
but
subdomain.domain.com/api/v1 stays on subdomain.domain.com/api/v1
Any way to do this using server-snippet redirect rules? or should I consider other options? like a backend service etc...
Thanks!