You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my-nginx-379829228-9eylj is my nginx pod name, 10.148.168.235 is the nginx pod IP. And I can get expected welcome page if I use http://10.148.168.235:80 directly in the browser. But use https://ingress.ciaas-qa.svc.33.tess.io/my-nginx get 404.
The text was updated successfully, but these errors were encountered:
The PathPrefix:/my-nginx rule that is automatically generated to match your /my-nginx ingress path does not strip the path. Therefore, the /my-nginx of the request gets passed to your pod, which in turn returns the 404.
Adding traefik.frontend.rule.type: pathprefixstrip to the annotations of the Ingress will cause the /my-nginx path to be stripped out of the request to NGINX.
What version of Traefik are you using (
traefik version
)?Lastest docker image, it should be
v1.1.2
What is your environment & configuration (arguments, toml...)?
I deploy traefik as the Ingress controller in my kubernetes cluster.
My toml:
My arguments:
What did you do?
I want to use traefik for my TLS termination at L7 level. My real service is provided by a nginx pod. I create Ingress spec as below:
But I get
404
when accessinghttps://ingress.ciaas-qa.svc.33.tess.io/my-nginx
.ingress.ciaas-qa.svc.33.tess.io
is my ingress service DNS record.What did you expect to see?
I should see the nginx welcome page.
What did you see instead?
I got 404 page from my nginx:
More info:
Here is the traefik configuration I get from the API:
my-nginx-379829228-9eylj
is my nginx pod name,10.148.168.235
is the nginx pod IP. And I can get expected welcome page if I usehttp://10.148.168.235:80
directly in the browser. But usehttps://ingress.ciaas-qa.svc.33.tess.io/my-nginx
get 404.The text was updated successfully, but these errors were encountered: