Help with rewrite problem - Unable to make it works #50956
albertmorenomng
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
We need to rewrite next call:
https://servername.domain/uat-s-ci/test but the service needs to receive https://servername.domain/test call
In the user browser needs to remain https://servername.domain/uat-s-ci/test
We some differents config but it didn't work, always receive 404 error (not found):
{
"error": {
"errorCode": 404,
"errorDateTime": "2024-05-09T12:17:59",
"errorMessage": "/uat-s-ci/test",
"errorDescription": "error",
"messageUID": "2cc72e40-0dfe-11ef-ad5b-46ffaf3bbc08"
}
}
the virtualservice config is that:
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: apitestllica.intranet.mango.es-vs
namespace: 3912f7f1-e711-40ee-8af3-60586a5547c6
spec:
gateways:
- mng-gateway
hosts:
- apitestllica.intranet.mango.es
http:
- match:
- uri:
prefix: /uat-s-ci/
- uri:
exact: /uat-s-ci
rewrite:
uri: /
route:
- destination:
host: uat-s-ci
port:
number: 8081
I'm rookie in Istio configs. But I think that I'm not so far to find the solution.
Does anyone ideas about what's wrong?
Thnksin advanced
Beta Was this translation helpful? Give feedback.
All reactions